Skip to content
1 min read · 62 words

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

NameTypeDefined in
model?stringsrc/batteries/llm/webllm_chat_completions/types.ts:54