Skip to content
1 min read · 147 words

Interface: OpenAIChatCompletionsRequestBody ​

Defined in: src/batteries/llm/openai_chat_completions/types.ts:456

Request body structure for the OpenAI Chat Completions API.

Indexable ​

ts
[key: string]: unknown

Properties ​

PropertyTypeDescriptionDefined in
_adk_reasoning_payloads?{ id: string; payload: unknown; replayCompatibility: string; }[]Side-channel for opaque vendor reasoning payloads. Forwarded to gateways that understand them; stripped by gateways that don't.src/batteries/llm/openai_chat_completions/types.ts:477
messagesChatCompletionsMessage[]A list of messages comprising the conversation history so far.src/batteries/llm/openai_chat_completions/types.ts:464
modelstringID of the model to use.src/batteries/llm/openai_chat_completions/types.ts:460
streambooleanIf set, partial message deltas will be sent as server-sent events.src/batteries/llm/openai_chat_completions/types.ts:468
tools?ChatCompletionsTool[]A list of tools the model may call.src/batteries/llm/openai_chat_completions/types.ts:472