openai.internal.ChatRequest

The complete request body. Null-valued fields are pruned before the body is serialized, so an unset option never reaches the wire as `"temperature": null`.

Reference version

Signature

class openai.internal.ChatRequest

The complete request body. Null-valued fields are pruned before the body is serialized, so an unset option never reaches the wire as "temperature": null.

Source:<builtin>/openai/ns_internal/chat.bamlbytes 1354313857

Fields

model

string

temperature

float | null

max_tokens

int | null

max_completion_tokens

int | null

top_p

float | null

stop

string[] | null

seed

int | null

tool_choice

string | null

stream

bool | null