Skip to content

The agent engineering platform.

fix(openai): gpt-5.2-pro Model Profile `structured_output` key fixed (#35216)

Mohammad Mohtashim0f5a31427549
diff --git a/libs/partners/openai/langchain_openai/data/_profiles.py b/libs/partners/openai/langchain_openai/data/_profiles.py
index 9a5955bac1..ecf2542937 100644
--- a/libs/partners/openai/langchain_openai/data/_profiles.py
+++ b/libs/partners/openai/langchain_openai/data/_profiles.py
@@ -16,9 +16,9 @@ https://docs.langchain.com/oss/python/langchain/models#updating-or-overwriting-p
from typing import Any
_PROFILES: dict[str, dict[str, Any]] = {
- "gpt-4.1-nano": {
- "max_input_tokens": 1047576,
- "max_output_tokens": 32768,
+ "gpt-4o-2024-11-20": {
+ "max_input_tokens": 128000,
+ "max_output_tokens": 16384,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
@@ -36,48 +36,49 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "text-embedding-3-small": {
- "max_input_tokens": 8191,
- "max_output_tokens": 1536,
+ "gpt-5.3-codex": {
+ "max_input_tokens": 400000,
+ "max_output_tokens": 128000,
"text_inputs": True,
- "image_inputs": False,
+ "image_inputs": True,
"audio_inputs": False,
+ "pdf_inputs": True,
"video_inputs": False,
"text_outputs": True,
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": False,
- "tool_calling": False,
+ "reasoning_output": True,
+ "tool_calling": True,
+ "structured_output": True,
"image_url_inputs": True,
- "pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-4": {
- "max_input_tokens": 8192,
- "max_output_tokens": 8192,
+ "gpt-5-codex": {
+ "max_input_tokens": 272000,
+ "max_output_tokens": 128000,
"text_inputs": True,
- "image_inputs": False,
+ "image_inputs": True,
"audio_inputs": False,
"video_inputs": False,
"text_outputs": True,
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": False,
+ "reasoning_output": True,
"tool_calling": True,
- "structured_output": False,
+ "structured_output": True,
"image_url_inputs": True,
"pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "o1-pro": {
- "max_input_tokens": 200000,
- "max_output_tokens": 100000,
+ "gpt-5-pro": {
+ "max_input_tokens": 272000,
+ "max_output_tokens": 272000,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
@@ -95,9 +96,9 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-4o-2024-05-13": {
+ "gpt-4o-mini": {
"max_input_tokens": 128000,
- "max_output_tokens": 4096,
+ "max_output_tokens": 16384,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
@@ -115,27 +116,26 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-5.2-codex": {
- "max_input_tokens": 400000,
- "max_output_tokens": 128000,
+ "text-embedding-ada-002": {
+ "max_input_tokens": 8192,
+ "max_output_tokens": 1536,
"text_inputs": True,
- "image_inputs": True,
+ "image_inputs": False,
"audio_inputs": False,
- "pdf_inputs": True,
"video_inputs": False,
"text_outputs": True,
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": True,
- "tool_calling": True,
- "structured_output": True,
+ "reasoning_output": False,
+ "tool_calling": False,
"image_url_inputs": True,
+ "pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-5.1-codex": {
+ "gpt-5-chat-latest": {
"max_input_tokens": 272000,
"max_output_tokens": 128000,
"text_inputs": True,
@@ -147,7 +147,7 @@ _PROFILES: dict[str, dict[str, Any]] = {
"audio_outputs": False,
"video_outputs": False,
"reasoning_output": True,
- "tool_calling": True,
+ "tool_calling": False,
"structured_output": True,
"image_url_inputs": True,
"pdf_inputs": True,
@@ -155,29 +155,28 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-4o-2024-08-06": {
- "max_input_tokens": 128000,
- "max_output_tokens": 16384,
+ "codex-mini-latest": {
+ "max_input_tokens": 200000,
+ "max_output_tokens": 100000,
"text_inputs": True,
- "image_inputs": True,
+ "image_inputs": False,
"audio_inputs": False,
"video_inputs": False,
"text_outputs": True,
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": False,
+ "reasoning_output": True,
"tool_calling": True,
- "structured_output": True,
"image_url_inputs": True,
"pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-4.1-mini": {
- "max_input_tokens": 1047576,
- "max_output_tokens": 32768,
+ "gpt-5.1-codex-max": {
+ "max_input_tokens": 272000,
+ "max_output_tokens": 128000,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
@@ -186,7 +185,7 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": False,
+ "reasoning_output": True,
"tool_calling": True,
"structured_output": True,
"image_url_inputs": True,
@@ -195,9 +194,9 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "o3-deep-research": {
- "max_input_tokens": 200000,
- "max_output_tokens": 100000,
+ "gpt-4o-2024-05-13": {
+ "max_input_tokens": 128000,
+ "max_output_tokens": 4096,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
@@ -206,37 +205,18 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": True,
+ "reasoning_output": False,
"tool_calling": True,
+ "structured_output": True,
"image_url_inputs": True,
"pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-3.5-turbo": {
- "max_input_tokens": 16385,
- "max_output_tokens": 4096,
- "text_inputs": True,
- "image_inputs": False,
- "audio_inputs": False,
- "video_inputs": False,
- "text_outputs": True,
- "image_outputs": False,
- "audio_outputs": False,
- "video_outputs": False,
- "reasoning_output": False,
- "tool_calling": False,
- "structured_output": False,
- "image_url_inputs": False,
- "pdf_inputs": False,
- "pdf_tool_message": False,
- "image_tool_message": False,
- "tool_choice": True,
- },
- "gpt-5.2-pro": {
+ "gpt-5.2-chat-latest": {
"max_input_tokens": 272000,
- "max_output_tokens": 128000,
+ "max_output_tokens": 16384,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
@@ -254,28 +234,29 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "text-embedding-3-large": {
- "max_input_tokens": 8191,
- "max_output_tokens": 3072,
+ "gpt-5.2-codex": {
+ "max_input_tokens": 400000,
+ "max_output_tokens": 128000,
"text_inputs": True,
- "image_inputs": False,
+ "image_inputs": True,
"audio_inputs": False,
+ "pdf_inputs": True,
"video_inputs": False,
"text_outputs": True,
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": False,
- "tool_calling": False,
+ "reasoning_output": True,
+ "tool_calling": True,
+ "structured_output": True,
"image_url_inputs": True,
- "pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-4-turbo": {
- "max_input_tokens": 128000,
- "max_output_tokens": 4096,
+ "o3-deep-research": {
+ "max_input_tokens": 200000,
+ "max_output_tokens": 100000,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
@@ -284,20 +265,19 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": False,
+ "reasoning_output": True,
"tool_calling": True,
- "structured_output": False,
"image_url_inputs": True,
"pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "o1-preview": {
- "max_input_tokens": 128000,
- "max_output_tokens": 32768,
+ "o1": {
+ "max_input_tokens": 200000,
+ "max_output_tokens": 100000,
"text_inputs": True,
- "image_inputs": False,
+ "image_inputs": True,
"audio_inputs": False,
"video_inputs": False,
"text_outputs": True,
@@ -305,14 +285,15 @@ _PROFILES: dict[str, dict[str, Any]] = {
"audio_outputs": False,
"video_outputs": False,
"reasoning_output": True,
- "tool_calling": False,
+ "tool_calling": True,
+ "structured_output": True,
"image_url_inputs": True,
"pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-5.1-codex-mini": {
+ "gpt-5.1": {
"max_input_tokens": 272000,
"max_output_tokens": 128000,
"text_inputs": True,
@@ -332,11 +313,11 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "o3-mini": {
+ "o4-mini-deep-research": {
"max_input_tokens": 200000,
"max_output_tokens": 100000,
"text_inputs": True,
- "image_inputs": False,
+ "image_inputs": True,
"audio_inputs": False,
"video_inputs": False,
"text_outputs": True,
@@ -345,19 +326,19 @@ _PROFILES: dict[str, dict[str, Any]] = {
"video_outputs": False,
"reasoning_output": True,
"tool_calling": True,
- "structured_output": True,
"image_url_inputs": True,
"pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-5.2-chat-latest": {
- "max_input_tokens": 272000,
- "max_output_tokens": 16384,
+ "gpt-5.3-codex-spark": {
+ "max_input_tokens": 128000,
+ "max_output_tokens": 32000,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
+ "pdf_inputs": True,
"video_inputs": False,
"text_outputs": True,
"image_outputs": False,
@@ -367,14 +348,13 @@ _PROFILES: dict[str, dict[str, Any]] = {
"tool_calling": True,
"structured_output": True,
"image_url_inputs": True,
- "pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-5.1": {
- "max_input_tokens": 272000,
- "max_output_tokens": 128000,
+ "o3": {
+ "max_input_tokens": 200000,
+ "max_output_tokens": 100000,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
@@ -392,9 +372,9 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "codex-mini-latest": {
- "max_input_tokens": 200000,
- "max_output_tokens": 100000,
+ "text-embedding-3-small": {
+ "max_input_tokens": 8191,
+ "max_output_tokens": 1536,
"text_inputs": True,
"image_inputs": False,
"audio_inputs": False,
@@ -403,17 +383,17 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": True,
- "tool_calling": True,
+ "reasoning_output": False,
+ "tool_calling": False,
"image_url_inputs": True,
"pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-5-nano": {
- "max_input_tokens": 272000,
- "max_output_tokens": 128000,
+ "gpt-4.1-nano": {
+ "max_input_tokens": 1047576,
+ "max_output_tokens": 32768,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
@@ -422,7 +402,7 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": True,
+ "reasoning_output": False,
"tool_calling": True,
"structured_output": True,
"image_url_inputs": True,
@@ -431,7 +411,46 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-5-codex": {
+ "text-embedding-3-large": {
+ "max_input_tokens": 8191,
+ "max_output_tokens": 3072,
+ "text_inputs": True,
+ "image_inputs": False,
+ "audio_inputs": False,
+ "video_inputs": False,
+ "text_outputs": True,
+ "image_outputs": False,
+ "audio_outputs": False,
+ "video_outputs": False,
+ "reasoning_output": False,
+ "tool_calling": False,
+ "image_url_inputs": True,
+ "pdf_inputs": True,
+ "pdf_tool_message": True,
+ "image_tool_message": True,
+ "tool_choice": True,
+ },
+ "gpt-3.5-turbo": {
+ "max_input_tokens": 16385,
+ "max_output_tokens": 4096,
+ "text_inputs": True,
+ "image_inputs": False,
+ "audio_inputs": False,
+ "video_inputs": False,
+ "text_outputs": True,
+ "image_outputs": False,
+ "audio_outputs": False,
+ "video_outputs": False,
+ "reasoning_output": False,
+ "tool_calling": False,
+ "structured_output": False,
+ "image_url_inputs": False,
+ "pdf_inputs": False,
+ "pdf_tool_message": False,
+ "image_tool_message": False,
+ "tool_choice": True,
+ },
+ "gpt-5.1-codex-mini": {
"max_input_tokens": 272000,
"max_output_tokens": 128000,
"text_inputs": True,
@@ -451,9 +470,9 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-4o": {
- "max_input_tokens": 128000,
- "max_output_tokens": 16384,
+ "gpt-5.2": {
+ "max_input_tokens": 272000,
+ "max_output_tokens": 128000,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
@@ -462,7 +481,7 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": False,
+ "reasoning_output": True,
"tool_calling": True,
"structured_output": True,
"image_url_inputs": True,
@@ -491,7 +510,7 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "o4-mini": {
+ "o3-pro": {
"max_input_tokens": 200000,
"max_output_tokens": 100000,
"text_inputs": True,
@@ -511,9 +530,9 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "o1": {
- "max_input_tokens": 200000,
- "max_output_tokens": 100000,
+ "gpt-4-turbo": {
+ "max_input_tokens": 128000,
+ "max_output_tokens": 4096,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
@@ -522,22 +541,21 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": True,
+ "reasoning_output": False,
"tool_calling": True,
- "structured_output": True,
+ "structured_output": False,
"image_url_inputs": True,
"pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-5.3-codex": {
- "max_input_tokens": 400000,
+ "gpt-5": {
+ "max_input_tokens": 272000,
"max_output_tokens": 128000,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
- "pdf_inputs": True,
"video_inputs": False,
"text_outputs": True,
"image_outputs": False,
@@ -547,13 +565,14 @@ _PROFILES: dict[str, dict[str, Any]] = {
"tool_calling": True,
"structured_output": True,
"image_url_inputs": True,
+ "pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-5-mini": {
- "max_input_tokens": 272000,
- "max_output_tokens": 128000,
+ "o4-mini": {
+ "max_input_tokens": 200000,
+ "max_output_tokens": 100000,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
@@ -571,19 +590,19 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "o1-mini": {
- "max_input_tokens": 128000,
- "max_output_tokens": 65536,
+ "gpt-4.1-mini": {
+ "max_input_tokens": 1047576,
+ "max_output_tokens": 32768,
"text_inputs": True,
- "image_inputs": False,
+ "image_inputs": True,
"audio_inputs": False,
"video_inputs": False,
"text_outputs": True,
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": True,
- "tool_calling": False,
+ "reasoning_output": False,
+ "tool_calling": True,
"structured_output": True,
"image_url_inputs": True,
"pdf_inputs": True,
@@ -591,9 +610,9 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "text-embedding-ada-002": {
- "max_input_tokens": 8192,
- "max_output_tokens": 1536,
+ "o1-preview": {
+ "max_input_tokens": 128000,
+ "max_output_tokens": 32768,
"text_inputs": True,
"image_inputs": False,
"audio_inputs": False,
@@ -602,7 +621,7 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": False,
+ "reasoning_output": True,
"tool_calling": False,
"image_url_inputs": True,
"pdf_inputs": True,
@@ -610,7 +629,7 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "o3-pro": {
+ "o1-pro": {
"max_input_tokens": 200000,
"max_output_tokens": 100000,
"text_inputs": True,
@@ -630,9 +649,9 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-4o-2024-11-20": {
- "max_input_tokens": 128000,
- "max_output_tokens": 16384,
+ "gpt-5.1-codex": {
+ "max_input_tokens": 272000,
+ "max_output_tokens": 128000,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
@@ -641,7 +660,7 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": False,
+ "reasoning_output": True,
"tool_calling": True,
"structured_output": True,
"image_url_inputs": True,
@@ -650,7 +669,7 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-5.1-codex-max": {
+ "gpt-5.2-pro": {
"max_input_tokens": 272000,
"max_output_tokens": 128000,
"text_inputs": True,
@@ -663,18 +682,18 @@ _PROFILES: dict[str, dict[str, Any]] = {
"video_outputs": False,
"reasoning_output": True,
"tool_calling": True,
- "structured_output": True,
+ "structured_output": False,
"image_url_inputs": True,
"pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "o3": {
+ "o3-mini": {
"max_input_tokens": 200000,
"max_output_tokens": 100000,
"text_inputs": True,
- "image_inputs": True,
+ "image_inputs": False,
"audio_inputs": False,
"video_inputs": False,
"text_outputs": True,
@@ -690,9 +709,9 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "o4-mini-deep-research": {
- "max_input_tokens": 200000,
- "max_output_tokens": 100000,
+ "gpt-4o-2024-08-06": {
+ "max_input_tokens": 128000,
+ "max_output_tokens": 16384,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
@@ -701,15 +720,16 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": True,
+ "reasoning_output": False,
"tool_calling": True,
+ "structured_output": True,
"image_url_inputs": True,
"pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-5-chat-latest": {
+ "gpt-5-mini": {
"max_input_tokens": 272000,
"max_output_tokens": 128000,
"text_inputs": True,
@@ -721,7 +741,7 @@ _PROFILES: dict[str, dict[str, Any]] = {
"audio_outputs": False,
"video_outputs": False,
"reasoning_output": True,
- "tool_calling": False,
+ "tool_calling": True,
"structured_output": True,
"image_url_inputs": True,
"pdf_inputs": True,
@@ -729,8 +749,8 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-4o-mini": {
- "max_input_tokens": 128000,
+ "gpt-5.1-chat-latest": {
+ "max_input_tokens": 272000,
"max_output_tokens": 16384,
"text_inputs": True,
"image_inputs": True,
@@ -740,7 +760,7 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": False,
+ "reasoning_output": True,
"tool_calling": True,
"structured_output": True,
"image_url_inputs": True,
@@ -749,29 +769,29 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-5": {
- "max_input_tokens": 272000,
- "max_output_tokens": 128000,
+ "gpt-4": {
+ "max_input_tokens": 8192,
+ "max_output_tokens": 8192,
"text_inputs": True,
- "image_inputs": True,
+ "image_inputs": False,
"audio_inputs": False,
"video_inputs": False,
"text_outputs": True,
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": True,
+ "reasoning_output": False,
"tool_calling": True,
- "structured_output": True,
+ "structured_output": False,
"image_url_inputs": True,
"pdf_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-5-pro": {
+ "gpt-5-nano": {
"max_input_tokens": 272000,
- "max_output_tokens": 272000,
+ "max_output_tokens": 128000,
"text_inputs": True,
"image_inputs": True,
"audio_inputs": False,
@@ -789,11 +809,11 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-5.2": {
- "max_input_tokens": 272000,
- "max_output_tokens": 128000,
+ "o1-mini": {
+ "max_input_tokens": 128000,
+ "max_output_tokens": 65536,
"text_inputs": True,
- "image_inputs": True,
+ "image_inputs": False,
"audio_inputs": False,
"video_inputs": False,
"text_outputs": True,
@@ -801,7 +821,7 @@ _PROFILES: dict[str, dict[str, Any]] = {
"audio_outputs": False,
"video_outputs": False,
"reasoning_output": True,
- "tool_calling": True,
+ "tool_calling": False,
"structured_output": True,
"image_url_inputs": True,
"pdf_inputs": True,
@@ -809,8 +829,8 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_choice": True,
},
- "gpt-5.1-chat-latest": {
- "max_input_tokens": 272000,
+ "gpt-4o": {
+ "max_input_tokens": 128000,
"max_output_tokens": 16384,
"text_inputs": True,
"image_inputs": True,
@@ -820,7 +840,7 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_outputs": False,
"audio_outputs": False,
"video_outputs": False,
- "reasoning_output": True,
+ "reasoning_output": False,
"tool_calling": True,
"structured_output": True,
"image_url_inputs": True,