hashbrown

WebLlmEngine

Structural subset of WebLLM's engine API, including worker engines. The application creates, loads, and eventually unloads the engine.

WebLlmEngine
@typeTUserContent
chat
{
        completions: {
            create(request: WebLlmRequest<TUserContent>): Promise<AsyncIterable<WebLlmChunk>> | AsyncIterable<WebLlmChunk>;
        };
    }