diff --git a/chat.go b/chat.go index fcaf79c..7a44fd8 100644 --- a/chat.go +++ b/chat.go @@ -258,6 +258,8 @@ type ChatCompletionRequest struct { // Store can be set to true to store the output of this completion request for use in distillations and evals. // https://platform.openai.com/docs/api-reference/chat/create#chat-create-store Store bool `json:"store,omitempty"` + // Controls effort on reasoning for reasoning models. It can be set to "low", "medium", or "high". + ReasoningEffort string `json:"reasoning_effort,omitempty"` // Metadata to store with the completion. Metadata map[string]string `json:"metadata,omitempty"` } diff --git a/completion.go b/completion.go index f115660..6272468 100644 --- a/completion.go +++ b/completion.go @@ -29,6 +29,8 @@ const ( O1Mini20240912 = "o1-mini-2024-09-12" O1Preview = "o1-preview" O1Preview20240912 = "o1-preview-2024-09-12" + O1 = "o1" + O120241217 = "o1-2024-12-17" GPT432K0613 = "gpt-4-32k-0613" GPT432K0314 = "gpt-4-32k-0314" GPT432K = "gpt-4-32k"