Download types/engine/chat.d.ts from nyaaorick/everything-webgpu: direct link, hf CLI and curl.
- Browser
- Download file 805 Bytes
-
https://huggingface.co/nyaaorick/everything-webgpu/resolve/main/types/engine/chat.d.ts
- Command line
-
hf download hf://nyaaorick/everything-webgpu/types/engine/chat.d.ts
-
curl -L -o chat.d.ts https://huggingface.co/nyaaorick/everything-webgpu/resolve/main/types/engine/chat.d.ts
805 Bytes
| /** @param {import("./engine.js").ScheduledEngine} engine */ | |
| export function chatFacade(engine: import("./engine.js").ScheduledEngine): { | |
| completions: { | |
| /** | |
| * @param {import("./engine.js").CompletionRequest & { | |
| * stream?: boolean, stream_options?: {include_usage?: boolean} }} req | |
| * @returns {Promise<object | AsyncIterable<object>>} a completion, or a | |
| * stream of chunks when `stream` is set — the same two shapes WebLLM | |
| * returns, so `await`ing then `for await`ing works unchanged. | |
| */ | |
| create(req: import("./engine.js").CompletionRequest & { | |
| stream?: boolean; | |
| stream_options?: { | |
| include_usage?: boolean; | |
| }; | |
| }): Promise<object | AsyncIterable<object>>; | |
| }; | |
| }; | |