@@ -30,6 +30,16 @@ install_crate = { crate_name = "cargo-component", version = "0.20.0" }
30
30
command = " cargo-component"
31
31
args = [" build" , " -p" , " golem-llm-grok" , " --no-default-features" ]
32
32
33
+ [tasks .build-ollama ]
34
+ install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
35
+ command = " cargo-component"
36
+ args = [" build" , " -p" , " golem-llm-ollama" ]
37
+
38
+ [tasks .build-ollama-portable ]
39
+ install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
40
+ command = " cargo-component"
41
+ args = [" build" , " -p" , " golem-llm-ollama" , " --no-default-features" ]
42
+
33
43
[tasks .build-openai ]
34
44
install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
35
45
command = " cargo-component"
@@ -54,6 +64,7 @@ args = ["build", "-p", "golem-llm-openrouter", "--no-default-features"]
54
64
dependencies = [
55
65
" build-anthropic" ,
56
66
" build-grok" ,
67
+ " build-ollama" ,
57
68
" build-openai" ,
58
69
" build-openrouter" ,
59
70
]
@@ -62,6 +73,7 @@ dependencies = [
62
73
dependencies = [
63
74
" build-anthropic-portable" ,
64
75
" build-grok-portable" ,
76
+ " build-ollama-portable" ,
65
77
" build-openai-portable" ,
66
78
" build-openrouter-portable" ,
67
79
]
@@ -76,6 +88,7 @@ cm_run_task build
76
88
77
89
cp target/wasm32-wasip1/debug/golem_llm_anthropic.wasm components/debug/golem_llm_anthropic.wasm
78
90
cp target/wasm32-wasip1/debug/golem_llm_grok.wasm components/debug/golem_llm_grok.wasm
91
+ cp target/wasm32-wasip1/debug/golem_llm_ollama.wasm components/debug/golem_llm_ollama.wasm
79
92
cp target/wasm32-wasip1/debug/golem_llm_openai.wasm components/debug/golem_llm_openai.wasm
80
93
cp target/wasm32-wasip1/debug/golem_llm_openrouter.wasm components/debug/golem_llm_openrouter.wasm
81
94
@@ -84,6 +97,7 @@ cm_run_task build-portable
84
97
85
98
cp target/wasm32-wasip1/debug/golem_llm_anthropic.wasm components/debug/golem_llm_anthropic-portable.wasm
86
99
cp target/wasm32-wasip1/debug/golem_llm_grok.wasm components/debug/golem_llm_grok-portable.wasm
100
+ cp target/wasm32-wasip1/debug/golem_llm_ollama.wasm components/debug/golem_llm_ollama-portable.wasm
87
101
cp target/wasm32-wasip1/debug/golem_llm_openai.wasm components/debug/golem_llm_openai-portable.wasm
88
102
cp target/wasm32-wasip1/debug/golem_llm_openrouter.wasm components/debug/golem_llm_openrouter-portable.wasm
89
103
'''
@@ -114,6 +128,16 @@ install_crate = { crate_name = "cargo-component", version = "0.20.0" }
114
128
command = " cargo-component"
115
129
args = [" build" , " -p" , " golem-llm-grok" , " --release" , " --no-default-features" ]
116
130
131
+ [tasks .release-ollama ]
132
+ install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
133
+ command = " cargo-component"
134
+ args = [" build" , " -p" , " golem-llm-ollama" , " --release" ]
135
+
136
+ [tasks .release-ollama-portable ]
137
+ install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
138
+ command = " cargo-component"
139
+ args = [" build" , " -p" , " golem-llm-ollama" , " --release" , " --no-default-features" ]
140
+
117
141
[tasks .release-build-openai ]
118
142
install_crate = { crate_name = " cargo-component" , version = " 0.20.0" }
119
143
command = " cargo-component"
@@ -144,6 +168,7 @@ args = [
144
168
dependencies = [
145
169
" release-build-anthropic" ,
146
170
" release-build-grok" ,
171
+ " release-build-ollama" ,
147
172
" release-build-openai" ,
148
173
" release-build-openrouter" ,
149
174
]
@@ -152,6 +177,7 @@ dependencies = [
152
177
dependencies = [
153
178
" release-build-anthropic-portable" ,
154
179
" release-build-grok-portable" ,
180
+ " release-build-ollama-portable" ,
155
181
" release-build-openai-portable" ,
156
182
" release-build-openrouter-portable" ,
157
183
]
@@ -168,6 +194,7 @@ cm_run_task release-build
168
194
169
195
cp target/wasm32-wasip1/release/golem_llm_anthropic.wasm components/release/golem_llm_anthropic.wasm
170
196
cp target/wasm32-wasip1/release/golem_llm_grok.wasm components/release/golem_llm_grok.wasm
197
+ cp target/wasm32-wasip1/release/golem_llm_ollama.wasm components/release/golem_llm_ollama.wasm
171
198
cp target/wasm32-wasip1/release/golem_llm_openai.wasm components/release/golem_llm_openai.wasm
172
199
cp target/wasm32-wasip1/release/golem_llm_openrouter.wasm components/release/golem_llm_openrouter.wasm
173
200
@@ -176,6 +203,7 @@ cm_run_task release-build-portable
176
203
177
204
cp target/wasm32-wasip1/release/golem_llm_anthropic.wasm components/release/golem_llm_anthropic-portable.wasm
178
205
cp target/wasm32-wasip1/release/golem_llm_grok.wasm components/release/golem_llm_grok-portable.wasm
206
+ cp target/wasm32-wasip1/release/golem_llm_ollama.wasm components/release/golem_llm_ollama-portable.wasm
179
207
cp target/wasm32-wasip1/release/golem_llm_openai.wasm components/release/golem_llm_openai-portable.wasm
180
208
cp target/wasm32-wasip1/release/golem_llm_openrouter.wasm components/release/golem_llm_openrouter-portable.wasm
181
209
'''
@@ -195,6 +223,7 @@ dependencies = ["wit-update"]
195
223
# "llm/wit/deps/golem-llm/golem-llm.wit",
196
224
# "llm-anthropic/wit/deps/golem-llm/golem-llm.wit",
197
225
# "llm-grok/wit/deps/golem-llm/golem-llm.wit",
226
+ # "llm-ollama/wit/deps/golem-llm/golem-llm.wit",
198
227
# "llm-openai/wit/deps/golem-llm/golem-llm.wit",
199
228
# "llm-openrouter/wit/deps/golem-llm/golem-llm.wit",
200
229
# ] } }
@@ -213,6 +242,10 @@ rm -r llm-grok/wit/deps
213
242
mkdir llm-grok/wit/deps/golem-llm
214
243
cp wit/golem-llm.wit llm-grok/wit/deps/golem-llm/golem-llm.wit
215
244
cp wit/deps/wasi:io llm-grok/wit/deps
245
+ rm -r llm-ollama/wit/deps
246
+ mkdir llm-ollama/wit/deps/golem-llm
247
+ cp wit/golem-llm.wit llm-ollama/wit/deps/golem-llm/golem-llm.wit
248
+ cp wit/deps/wasi:io llm-ollama/wit/deps
216
249
rm -r llm-openai/wit/deps
217
250
mkdir llm-openai/wit/deps/golem-llm
218
251
cp wit/golem-llm.wit llm-openai/wit/deps/golem-llm/golem-llm.wit
@@ -277,15 +310,17 @@ dependencies = ["build"]
277
310
description = " Builds all test components with golem-cli"
278
311
install_crate = " cargo-binstall"
279
312
script = '''
280
- cargo-binstall golem-cli@1.2.2-dev.11 --locked --force --no-confirm
281
- cargo-binstall wac-cli --locked --force --no-confirm
313
+ # cargo-binstall golem-cli@1.2.2-dev.11 --locked --force --no-confirm
314
+ # cargo-binstall wac-cli --locked --force --no-confirm
282
315
cd test
283
316
golem-cli --version
284
317
golem-cli app clean
285
318
golem-cli app build -b anthropic-debug
286
319
golem-cli app clean
287
320
golem-cli app build -b grok-debug
288
321
golem-cli app clean
322
+ golem-cli app build -b ollama-debug
323
+ golem-cli app clean
289
324
golem-cli app build -b openai-debug
290
325
golem-cli app clean
291
326
golem-cli app build -b openrouter-debug
0 commit comments