feat: xhigh reasoning for gpt-5.2 (#6735)

This commit is contained in:
Ari Webb
2025-12-11 17:13:06 -08:00
committed by Caren Thomas
parent bffb9064b8
commit fecf503ad9
7 changed files with 105 additions and 74 deletions

View File

@@ -17856,7 +17856,8 @@
"minimal",
"low",
"medium",
"high"
"high",
"xhigh"
],
"nullable": true
},
@@ -21043,7 +21044,8 @@
"additionalProperties": true,
"type": "object",
"required": ["type", "url_citation"],
"title": "Annotation"
"title": "Annotation",
"description": "A URL citation when using web search."
},
"AnnotationURLCitation": {
"properties": {
@@ -21067,7 +21069,8 @@
"additionalProperties": true,
"type": "object",
"required": ["end_index", "start_index", "title", "url"],
"title": "AnnotationURLCitation"
"title": "AnnotationURLCitation",
"description": "A URL citation when using web search."
},
"AnthropicModelSettings": {
"properties": {
@@ -21963,7 +21966,8 @@
},
"type": "object",
"required": ["id"],
"title": "Audio"
"title": "Audio",
"description": "Data about a previous audio response from the model.\n[Learn more](https://platform.openai.com/docs/guides/audio)."
},
"AuthRequest": {
"properties": {
@@ -23369,7 +23373,8 @@
"additionalProperties": true,
"type": "object",
"required": ["id", "choices", "created", "model", "object"],
"title": "ChatCompletion"
"title": "ChatCompletion",
"description": "Represents a chat completion response returned by model, based on the provided input."
},
"ChatCompletionAssistantMessageParam": {
"properties": {
@@ -23454,7 +23459,8 @@
},
"type": "object",
"required": ["role"],
"title": "ChatCompletionAssistantMessageParam"
"title": "ChatCompletionAssistantMessageParam",
"description": "Messages sent by the model in response to user messages."
},
"ChatCompletionAudio": {
"properties": {
@@ -23478,7 +23484,8 @@
"additionalProperties": true,
"type": "object",
"required": ["id", "data", "expires_at", "transcript"],
"title": "ChatCompletionAudio"
"title": "ChatCompletionAudio",
"description": "If the audio output modality is requested, this object contains data\nabout the audio response from the model. [Learn more](https://platform.openai.com/docs/guides/audio)."
},
"ChatCompletionContentPartImageParam": {
"properties": {
@@ -23493,7 +23500,8 @@
},
"type": "object",
"required": ["image_url", "type"],
"title": "ChatCompletionContentPartImageParam"
"title": "ChatCompletionContentPartImageParam",
"description": "Learn about [image inputs](https://platform.openai.com/docs/guides/vision)."
},
"ChatCompletionContentPartInputAudioParam": {
"properties": {
@@ -23508,7 +23516,8 @@
},
"type": "object",
"required": ["input_audio", "type"],
"title": "ChatCompletionContentPartInputAudioParam"
"title": "ChatCompletionContentPartInputAudioParam",
"description": "Learn about [audio inputs](https://platform.openai.com/docs/guides/audio)."
},
"ChatCompletionContentPartRefusalParam": {
"properties": {
@@ -23540,7 +23549,8 @@
},
"type": "object",
"required": ["text", "type"],
"title": "ChatCompletionContentPartTextParam"
"title": "ChatCompletionContentPartTextParam",
"description": "Learn about [text inputs](https://platform.openai.com/docs/guides/text-generation)."
},
"ChatCompletionDeveloperMessageParam": {
"properties": {
@@ -23570,7 +23580,8 @@
},
"type": "object",
"required": ["content", "role"],
"title": "ChatCompletionDeveloperMessageParam"
"title": "ChatCompletionDeveloperMessageParam",
"description": "Developer-provided instructions that the model should follow, regardless of\nmessages sent by the user. With o1 models and newer, `developer` messages\nreplace the previous `system` messages."
},
"ChatCompletionFunctionMessageParam": {
"properties": {
@@ -23687,7 +23698,8 @@
"additionalProperties": true,
"type": "object",
"required": ["role"],
"title": "ChatCompletionMessage"
"title": "ChatCompletionMessage",
"description": "A chat completion message generated by the model."
},
"ChatCompletionMessageCustomToolCall": {
"properties": {
@@ -23707,7 +23719,8 @@
"additionalProperties": true,
"type": "object",
"required": ["id", "custom", "type"],
"title": "ChatCompletionMessageCustomToolCall"
"title": "ChatCompletionMessageCustomToolCall",
"description": "A call to a custom tool created by the model."
},
"ChatCompletionMessageCustomToolCallParam": {
"properties": {
@@ -23726,7 +23739,8 @@
},
"type": "object",
"required": ["id", "custom", "type"],
"title": "ChatCompletionMessageCustomToolCallParam"
"title": "ChatCompletionMessageCustomToolCallParam",
"description": "A call to a custom tool created by the model."
},
"ChatCompletionMessageFunctionToolCall-Input": {
"properties": {
@@ -23746,7 +23760,8 @@
"additionalProperties": true,
"type": "object",
"required": ["id", "function", "type"],
"title": "ChatCompletionMessageFunctionToolCall"
"title": "ChatCompletionMessageFunctionToolCall",
"description": "A call to a function tool created by the model."
},
"ChatCompletionMessageFunctionToolCall-Output": {
"properties": {
@@ -23766,7 +23781,8 @@
"additionalProperties": true,
"type": "object",
"required": ["id", "function", "type"],
"title": "ChatCompletionMessageFunctionToolCall"
"title": "ChatCompletionMessageFunctionToolCall",
"description": "A call to a function tool created by the model."
},
"ChatCompletionMessageFunctionToolCallParam": {
"properties": {
@@ -23785,7 +23801,8 @@
},
"type": "object",
"required": ["id", "function", "type"],
"title": "ChatCompletionMessageFunctionToolCallParam"
"title": "ChatCompletionMessageFunctionToolCallParam",
"description": "A call to a function tool created by the model."
},
"ChatCompletionRequest": {
"properties": {
@@ -23980,7 +23997,8 @@
},
"type": "object",
"required": ["content", "role"],
"title": "ChatCompletionSystemMessageParam"
"title": "ChatCompletionSystemMessageParam",
"description": "Developer-provided instructions that the model should follow, regardless of\nmessages sent by the user. With o1 models and newer, use `developer` messages\nfor this purpose instead."
},
"ChatCompletionTokenLogprob": {
"properties": {
@@ -24090,7 +24108,8 @@
},
"type": "object",
"required": ["content", "role"],
"title": "ChatCompletionUserMessageParam"
"title": "ChatCompletionUserMessageParam",
"description": "Messages sent by an end user, containing prompts or additional context\ninformation."
},
"ChildToolRule": {
"properties": {
@@ -24238,7 +24257,8 @@
},
"additionalProperties": true,
"type": "object",
"title": "ChoiceLogprobs"
"title": "ChoiceLogprobs",
"description": "Log probability information for the choice."
},
"CodeInput": {
"properties": {
@@ -24367,7 +24387,8 @@
},
"additionalProperties": true,
"type": "object",
"title": "CompletionTokensDetails"
"title": "CompletionTokensDetails",
"description": "Breakdown of tokens used in a completion."
},
"CompletionUsage": {
"properties": {
@@ -24407,7 +24428,8 @@
"additionalProperties": true,
"type": "object",
"required": ["completion_tokens", "prompt_tokens", "total_tokens"],
"title": "CompletionUsage"
"title": "CompletionUsage",
"description": "Usage statistics for the completion request."
},
"ConditionalToolRule": {
"properties": {
@@ -25888,7 +25910,8 @@
},
"type": "object",
"required": ["input", "name"],
"title": "Custom"
"title": "Custom",
"description": "The custom tool that the model called."
},
"Custom-Output": {
"properties": {
@@ -25904,7 +25927,8 @@
"additionalProperties": true,
"type": "object",
"required": ["input", "name"],
"title": "Custom"
"title": "Custom",
"description": "The custom tool that the model called."
},
"DeepseekModelSettings": {
"properties": {
@@ -26621,7 +26645,8 @@
},
"type": "object",
"required": ["file", "type"],
"title": "File"
"title": "File",
"description": "Learn about [file inputs](https://platform.openai.com/docs/guides/text) for text generation."
},
"FileAgentSchema": {
"properties": {
@@ -27460,7 +27485,8 @@
"additionalProperties": true,
"type": "object",
"required": ["arguments", "name"],
"title": "Function"
"title": "Function",
"description": "The function that the model called."
},
"FunctionCall-Input": {
"properties": {
@@ -27475,7 +27501,8 @@
},
"type": "object",
"required": ["arguments", "name"],
"title": "FunctionCall"
"title": "FunctionCall",
"description": "Deprecated and replaced by `tool_calls`.\n\nThe name and arguments of a function that should be called, as generated by the model."
},
"FunctionCall-Output": {
"properties": {
@@ -27491,7 +27518,8 @@
"additionalProperties": true,
"type": "object",
"required": ["arguments", "name"],
"title": "FunctionCall"
"title": "FunctionCall",
"description": "Deprecated and replaced by `tool_calls`.\n\nThe name and arguments of a function that should be called, as generated by the model."
},
"FunctionDefinition": {
"properties": {
@@ -30331,7 +30359,7 @@
"anyOf": [
{
"type": "string",
"enum": ["none", "minimal", "low", "medium", "high"]
"enum": ["none", "minimal", "low", "medium", "high", "xhigh"]
},
{
"type": "null"
@@ -32572,7 +32600,7 @@
"anyOf": [
{
"type": "string",
"enum": ["none", "minimal", "low", "medium", "high"]
"enum": ["none", "minimal", "low", "medium", "high", "xhigh"]
},
{
"type": "null"
@@ -32905,7 +32933,7 @@
"properties": {
"reasoning_effort": {
"type": "string",
"enum": ["none", "minimal", "low", "medium", "high"],
"enum": ["none", "minimal", "low", "medium", "high", "xhigh"],
"title": "Reasoning Effort",
"description": "The reasoning effort to use when generating text reasoning models",
"default": "minimal"
@@ -33563,7 +33591,8 @@
},
"additionalProperties": true,
"type": "object",
"title": "PromptTokensDetails"
"title": "PromptTokensDetails",
"description": "Breakdown of tokens used in the prompt."
},
"Provider": {
"properties": {
@@ -41495,7 +41524,8 @@
"additionalProperties": true,
"type": "object",
"required": ["arguments", "name"],
"title": "Function"
"title": "Function",
"description": "The function that the model called."
},
"openai__types__chat__chat_completion_message_function_tool_call_param__Function": {
"properties": {
@@ -41510,7 +41540,8 @@
},
"type": "object",
"required": ["arguments", "name"],
"title": "Function"
"title": "Function",
"description": "The function that the model called."
},
"LettaMessageUnion": {
"oneOf": [