We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffbe4f4 commit 62ff297Copy full SHA for 62ff297
examples/tinygo-llm/spin.toml
@@ -1,17 +1,19 @@
1
-spin_manifest_version = "1"
+spin_manifest_version = 2
2
+
3
+[application]
4
authors = ["Fermyon Engineering <[email protected]>"]
5
description = "Simple example using the llm sdk."
6
name = "tinygo-llm"
-trigger = { type = "http", base = "/" }
7
version = "0.1.0"
8
-[[component]]
9
-id = "tinygo-llm"
+[[trigger.http]]
10
+route = "/..."
11
+component = "tinygo-llm"
12
13
+[component.tinygo-llm]
14
source = "main.wasm"
15
allowed_http_hosts = []
16
ai_models = ["llama2-chat", "all-minilm-l6-v2"]
-[component.trigger]
-route = "/..."
-[component.build]
17
+[component.tinygo-llm.build]
18
command = "tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go"
19
watch = ["**/*.go", "go.mod"]
0 commit comments