Type Alias: WebLLMChatCompletionsRequestBody
ts
type WebLLMChatCompletionsRequestBody = Omit<
OpenAIChatCompletionsRequestBody,
"model"
> & {
model?: string;
};Defined in: src/batteries/llm/webllm_chat_completions/types.ts:53
The request-body shape for the WebLLM adapter — the OpenAI Chat Completions body with model relaxed to optional, since the model is fixed at engine-load time rather than per request.
Type Declaration
| Name | Type | Defined in |
|---|---|---|
model? | string | src/batteries/llm/webllm_chat_completions/types.ts:54 |