Chat Completion API: add ReasoningEffort and new o1 models (#928)

* add reasoning_effort param

* add o1 model

* fix lint
This commit is contained in:
Trevor Creech
2025-01-31 10:57:57 -08:00
committed by GitHub
parent 7a2915a37d
commit 9823a8bbbd
2 changed files with 4 additions and 0 deletions

View File

@@ -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"`
}