openai.ChatClient$stream
One model turn against OpenAI's Chat Completions API (`POST https://api.openai.com/v1/chat/completions`).
Reference version
Signature
class openai.ChatClient$streamOne model turn against OpenAI's Chat Completions API
(POST https://api.openai.com/v1/chat/completions).
The sibling of openai.ResponsesClient: same provider, older and far more
widely-cloned endpoint. Reach for this one when you want chat-completions
semantics from OpenAI itself; for any other OpenAI-compatible server use
openai.GenericClient, openai.OllamaClient, openai.OpenRouterClient or
openai.AzureClient, which are the same wire core with different compat
flags (openai/ns_internal/chat.baml).
Source:<builtin>/openai/chat.bamlbytes 0–0
Fields
model
string | nullapi_key
ai.Credential$stream | nullbase_url
ai.Credential$stream | nullrequest_timeout_ms
int | nulltime_to_first_token_timeout_ms
int | nullrequest_body
baml.json.json$stream | nullheaders
map<string, string> | nullquery_params
map<string, string> | nulltemperature
float | nullmax_tokens
int | nullmax_completion_tokens
int | nulltop_p
float | nullstop
string[] | nullseed
int | nullcapture_wire
bool | null