Skip to content

Commit 62ff297

Browse files
committed
update tinygo-llm
Signed-off-by: Vaughn Dice <[email protected]>
1 parent ffbe4f4 commit 62ff297

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

examples/tinygo-llm/spin.toml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
spin_manifest_version = "1"
1+
spin_manifest_version = 2
2+
3+
[application]
24
authors = ["Fermyon Engineering <[email protected]>"]
35
description = "Simple example using the llm sdk."
46
name = "tinygo-llm"
5-
trigger = { type = "http", base = "/" }
67
version = "0.1.0"
78

8-
[[component]]
9-
id = "tinygo-llm"
9+
[[trigger.http]]
10+
route = "/..."
11+
component = "tinygo-llm"
12+
13+
[component.tinygo-llm]
1014
source = "main.wasm"
1115
allowed_http_hosts = []
1216
ai_models = ["llama2-chat", "all-minilm-l6-v2"]
13-
[component.trigger]
14-
route = "/..."
15-
[component.build]
17+
[component.tinygo-llm.build]
1618
command = "tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go"
1719
watch = ["**/*.go", "go.mod"]

0 commit comments

Comments
 (0)