Download wasm-component/needle.wit from Cactus-Compute/needle2: direct link, hf CLI and curl.
- Browser
- Download file 457 Bytes
-
https://huggingface.co/Cactus-Compute/needle2/resolve/main/wasm-component/needle.wit
- Command line
-
hf download hf://Cactus-Compute/needle2/wasm-component/needle.wit
-
curl -L -o needle.wit https://huggingface.co/Cactus-Compute/needle2/resolve/main/wasm-component/needle.wit
457 Bytes
| package cactus:needle@2.0.0; | |
| interface engine { | |
| record failure { | |
| code: s32, | |
| message: string, | |
| } | |
| load: func(model: list<u8>) -> result<_, failure>; | |
| init: func( | |
| system-prompt: option<string>, | |
| tools-json: option<string>, | |
| tool-index-path: option<string>, | |
| ) -> result<u32, failure>; | |
| complete: func( | |
| input: string, | |
| max-new-tokens: u32, | |
| ) -> result<string, failure>; | |
| reset: func(); | |
| } | |
| world needle { | |
| export engine; | |
| } | |