diff --git a/libs/partners/openai/langchain_openai/data/_profiles.py b/libs/partners/openai/langchain_openai/data/_profiles.py index 9a5955bac1f..ecf2542937f 100644 --- a/libs/partners/openai/langchain_openai/data/_profiles.py +++ b/libs/partners/openai/langchain_openai/data/_profiles.py @@ -16,146 +16,7 @@ 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, - "text_inputs": True, - "image_inputs": True, - "audio_inputs": False, - "video_inputs": False, - "text_outputs": True, - "image_outputs": False, - "audio_outputs": False, - "video_outputs": False, - "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, - }, - "text-embedding-3-small": { - "max_input_tokens": 8191, - "max_output_tokens": 1536, - "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-4": { - "max_input_tokens": 8192, - "max_output_tokens": 8192, - "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": True, - "structured_output": False, - "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, - "text_inputs": True, - "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": True, - "structured_output": True, - "image_url_inputs": True, - "pdf_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "gpt-4o-2024-05-13": { - "max_input_tokens": 128000, - "max_output_tokens": 4096, - "text_inputs": True, - "image_inputs": True, - "audio_inputs": False, - "video_inputs": False, - "text_outputs": True, - "image_outputs": False, - "audio_outputs": False, - "video_outputs": False, - "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.2-codex": { - "max_input_tokens": 400000, - "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, - "audio_outputs": False, - "video_outputs": False, - "reasoning_output": True, - "tool_calling": True, - "structured_output": True, - "image_url_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "gpt-5.1-codex": { - "max_input_tokens": 272000, - "max_output_tokens": 128000, - "text_inputs": True, - "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": True, - "structured_output": True, - "image_url_inputs": True, - "pdf_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "gpt-4o-2024-08-06": { + "gpt-4o-2024-11-20": { "max_input_tokens": 128000, "max_output_tokens": 16384, "text_inputs": True, @@ -175,362 +36,6 @@ _PROFILES: dict[str, dict[str, Any]] = { "image_tool_message": True, "tool_choice": True, }, - "gpt-4.1-mini": { - "max_input_tokens": 1047576, - "max_output_tokens": 32768, - "text_inputs": True, - "image_inputs": True, - "audio_inputs": False, - "video_inputs": False, - "text_outputs": True, - "image_outputs": False, - "audio_outputs": False, - "video_outputs": False, - "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, - }, - "o3-deep-research": { - "max_input_tokens": 200000, - "max_output_tokens": 100000, - "text_inputs": True, - "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": 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": { - "max_input_tokens": 272000, - "max_output_tokens": 128000, - "text_inputs": True, - "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": True, - "structured_output": True, - "image_url_inputs": True, - "pdf_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "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-4-turbo": { - "max_input_tokens": 128000, - "max_output_tokens": 4096, - "text_inputs": True, - "image_inputs": True, - "audio_inputs": False, - "video_inputs": False, - "text_outputs": True, - "image_outputs": False, - "audio_outputs": False, - "video_outputs": False, - "reasoning_output": False, - "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, - "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": True, - "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-mini": { - "max_input_tokens": 272000, - "max_output_tokens": 128000, - "text_inputs": True, - "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": True, - "structured_output": True, - "image_url_inputs": True, - "pdf_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "o3-mini": { - "max_input_tokens": 200000, - "max_output_tokens": 100000, - "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": 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, - "text_inputs": True, - "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": 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, - "text_inputs": True, - "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": True, - "structured_output": True, - "image_url_inputs": True, - "pdf_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "codex-mini-latest": { - "max_input_tokens": 200000, - "max_output_tokens": 100000, - "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": True, - "tool_calling": True, - "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, - "text_inputs": True, - "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": True, - "structured_output": True, - "image_url_inputs": True, - "pdf_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "gpt-5-codex": { - "max_input_tokens": 272000, - "max_output_tokens": 128000, - "text_inputs": True, - "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": True, - "structured_output": True, - "image_url_inputs": True, - "pdf_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "gpt-4o": { - "max_input_tokens": 128000, - "max_output_tokens": 16384, - "text_inputs": True, - "image_inputs": True, - "audio_inputs": False, - "video_inputs": False, - "text_outputs": True, - "image_outputs": False, - "audio_outputs": False, - "video_outputs": False, - "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-4.1": { - "max_input_tokens": 1047576, - "max_output_tokens": 32768, - "text_inputs": True, - "image_inputs": True, - "audio_inputs": False, - "video_inputs": False, - "text_outputs": True, - "image_outputs": False, - "audio_outputs": False, - "video_outputs": False, - "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, - }, - "o4-mini": { - "max_input_tokens": 200000, - "max_output_tokens": 100000, - "text_inputs": True, - "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": True, - "structured_output": True, - "image_url_inputs": True, - "pdf_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "o1": { - "max_input_tokens": 200000, - "max_output_tokens": 100000, - "text_inputs": True, - "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": True, - "structured_output": True, - "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, "max_output_tokens": 128000, @@ -551,205 +56,7 @@ _PROFILES: dict[str, dict[str, Any]] = { "image_tool_message": True, "tool_choice": True, }, - "gpt-5-mini": { - "max_input_tokens": 272000, - "max_output_tokens": 128000, - "text_inputs": True, - "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": True, - "structured_output": True, - "image_url_inputs": True, - "pdf_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "o1-mini": { - "max_input_tokens": 128000, - "max_output_tokens": 65536, - "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": True, - "tool_calling": False, - "structured_output": True, - "image_url_inputs": True, - "pdf_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "text-embedding-ada-002": { - "max_input_tokens": 8192, - "max_output_tokens": 1536, - "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, - }, - "o3-pro": { - "max_input_tokens": 200000, - "max_output_tokens": 100000, - "text_inputs": True, - "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": True, - "structured_output": True, - "image_url_inputs": True, - "pdf_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "gpt-4o-2024-11-20": { - "max_input_tokens": 128000, - "max_output_tokens": 16384, - "text_inputs": True, - "image_inputs": True, - "audio_inputs": False, - "video_inputs": False, - "text_outputs": True, - "image_outputs": False, - "audio_outputs": False, - "video_outputs": False, - "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.1-codex-max": { - "max_input_tokens": 272000, - "max_output_tokens": 128000, - "text_inputs": True, - "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": True, - "structured_output": True, - "image_url_inputs": True, - "pdf_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "o3": { - "max_input_tokens": 200000, - "max_output_tokens": 100000, - "text_inputs": True, - "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": True, - "structured_output": True, - "image_url_inputs": True, - "pdf_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "o4-mini-deep-research": { - "max_input_tokens": 200000, - "max_output_tokens": 100000, - "text_inputs": True, - "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": True, - "image_url_inputs": True, - "pdf_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "gpt-5-chat-latest": { - "max_input_tokens": 272000, - "max_output_tokens": 128000, - "text_inputs": True, - "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, - "structured_output": True, - "image_url_inputs": True, - "pdf_inputs": True, - "pdf_tool_message": True, - "image_tool_message": True, - "tool_choice": True, - }, - "gpt-4o-mini": { - "max_input_tokens": 128000, - "max_output_tokens": 16384, - "text_inputs": True, - "image_inputs": True, - "audio_inputs": False, - "video_inputs": False, - "text_outputs": True, - "image_outputs": False, - "audio_outputs": False, - "video_outputs": False, - "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": { + "gpt-5-codex": { "max_input_tokens": 272000, "max_output_tokens": 128000, "text_inputs": True, @@ -789,6 +96,380 @@ _PROFILES: dict[str, dict[str, Any]] = { "image_tool_message": True, "tool_choice": True, }, + "gpt-4o-mini": { + "max_input_tokens": 128000, + "max_output_tokens": 16384, + "text_inputs": True, + "image_inputs": True, + "audio_inputs": False, + "video_inputs": False, + "text_outputs": True, + "image_outputs": False, + "audio_outputs": False, + "video_outputs": False, + "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, + }, + "text-embedding-ada-002": { + "max_input_tokens": 8192, + "max_output_tokens": 1536, + "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-5-chat-latest": { + "max_input_tokens": 272000, + "max_output_tokens": 128000, + "text_inputs": True, + "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, + "structured_output": True, + "image_url_inputs": True, + "pdf_inputs": True, + "pdf_tool_message": True, + "image_tool_message": True, + "tool_choice": True, + }, + "codex-mini-latest": { + "max_input_tokens": 200000, + "max_output_tokens": 100000, + "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": True, + "tool_calling": True, + "image_url_inputs": True, + "pdf_inputs": True, + "pdf_tool_message": True, + "image_tool_message": True, + "tool_choice": True, + }, + "gpt-5.1-codex-max": { + "max_input_tokens": 272000, + "max_output_tokens": 128000, + "text_inputs": True, + "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": True, + "structured_output": True, + "image_url_inputs": True, + "pdf_inputs": True, + "pdf_tool_message": True, + "image_tool_message": True, + "tool_choice": True, + }, + "gpt-4o-2024-05-13": { + "max_input_tokens": 128000, + "max_output_tokens": 4096, + "text_inputs": True, + "image_inputs": True, + "audio_inputs": False, + "video_inputs": False, + "text_outputs": True, + "image_outputs": False, + "audio_outputs": False, + "video_outputs": False, + "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.2-chat-latest": { + "max_input_tokens": 272000, + "max_output_tokens": 16384, + "text_inputs": True, + "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": 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-codex": { + "max_input_tokens": 400000, + "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, + "audio_outputs": False, + "video_outputs": False, + "reasoning_output": True, + "tool_calling": True, + "structured_output": True, + "image_url_inputs": True, + "pdf_tool_message": True, + "image_tool_message": True, + "tool_choice": True, + }, + "o3-deep-research": { + "max_input_tokens": 200000, + "max_output_tokens": 100000, + "text_inputs": True, + "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": True, + "image_url_inputs": True, + "pdf_inputs": True, + "pdf_tool_message": True, + "image_tool_message": True, + "tool_choice": True, + }, + "o1": { + "max_input_tokens": 200000, + "max_output_tokens": 100000, + "text_inputs": True, + "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": 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, + "text_inputs": True, + "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": True, + "structured_output": True, + "image_url_inputs": True, + "pdf_inputs": True, + "pdf_tool_message": True, + "image_tool_message": True, + "tool_choice": True, + }, + "o4-mini-deep-research": { + "max_input_tokens": 200000, + "max_output_tokens": 100000, + "text_inputs": True, + "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": True, + "image_url_inputs": True, + "pdf_inputs": True, + "pdf_tool_message": True, + "image_tool_message": True, + "tool_choice": True, + }, + "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, + "audio_outputs": False, + "video_outputs": False, + "reasoning_output": True, + "tool_calling": True, + "structured_output": True, + "image_url_inputs": True, + "pdf_tool_message": True, + "image_tool_message": True, + "tool_choice": True, + }, + "o3": { + "max_input_tokens": 200000, + "max_output_tokens": 100000, + "text_inputs": True, + "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": True, + "structured_output": True, + "image_url_inputs": True, + "pdf_inputs": True, + "pdf_tool_message": True, + "image_tool_message": True, + "tool_choice": True, + }, + "text-embedding-3-small": { + "max_input_tokens": 8191, + "max_output_tokens": 1536, + "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-4.1-nano": { + "max_input_tokens": 1047576, + "max_output_tokens": 32768, + "text_inputs": True, + "image_inputs": True, + "audio_inputs": False, + "video_inputs": False, + "text_outputs": True, + "image_outputs": False, + "audio_outputs": False, + "video_outputs": False, + "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, + }, + "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, + "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": 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": { "max_input_tokens": 272000, "max_output_tokens": 128000, @@ -809,6 +490,265 @@ _PROFILES: dict[str, dict[str, Any]] = { "image_tool_message": True, "tool_choice": True, }, + "gpt-4.1": { + "max_input_tokens": 1047576, + "max_output_tokens": 32768, + "text_inputs": True, + "image_inputs": True, + "audio_inputs": False, + "video_inputs": False, + "text_outputs": True, + "image_outputs": False, + "audio_outputs": False, + "video_outputs": False, + "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, + }, + "o3-pro": { + "max_input_tokens": 200000, + "max_output_tokens": 100000, + "text_inputs": True, + "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": 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, + "text_inputs": True, + "image_inputs": True, + "audio_inputs": False, + "video_inputs": False, + "text_outputs": True, + "image_outputs": False, + "audio_outputs": False, + "video_outputs": False, + "reasoning_output": False, + "tool_calling": True, + "structured_output": False, + "image_url_inputs": True, + "pdf_inputs": True, + "pdf_tool_message": True, + "image_tool_message": True, + "tool_choice": True, + }, + "gpt-5": { + "max_input_tokens": 272000, + "max_output_tokens": 128000, + "text_inputs": True, + "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": True, + "structured_output": True, + "image_url_inputs": True, + "pdf_inputs": True, + "pdf_tool_message": True, + "image_tool_message": True, + "tool_choice": True, + }, + "o4-mini": { + "max_input_tokens": 200000, + "max_output_tokens": 100000, + "text_inputs": True, + "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": 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, + "text_inputs": True, + "image_inputs": True, + "audio_inputs": False, + "video_inputs": False, + "text_outputs": True, + "image_outputs": False, + "audio_outputs": False, + "video_outputs": False, + "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, + }, + "o1-preview": { + "max_input_tokens": 128000, + "max_output_tokens": 32768, + "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": True, + "tool_calling": False, + "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, + "text_inputs": True, + "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": 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": { + "max_input_tokens": 272000, + "max_output_tokens": 128000, + "text_inputs": True, + "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": 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-pro": { + "max_input_tokens": 272000, + "max_output_tokens": 128000, + "text_inputs": True, + "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": True, + "structured_output": False, + "image_url_inputs": True, + "pdf_inputs": True, + "pdf_tool_message": True, + "image_tool_message": True, + "tool_choice": True, + }, + "o3-mini": { + "max_input_tokens": 200000, + "max_output_tokens": 100000, + "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": 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-4o-2024-08-06": { + "max_input_tokens": 128000, + "max_output_tokens": 16384, + "text_inputs": True, + "image_inputs": True, + "audio_inputs": False, + "video_inputs": False, + "text_outputs": True, + "image_outputs": False, + "audio_outputs": False, + "video_outputs": False, + "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-mini": { + "max_input_tokens": 272000, + "max_output_tokens": 128000, + "text_inputs": True, + "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": 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-chat-latest": { "max_input_tokens": 272000, "max_output_tokens": 16384, @@ -829,4 +769,84 @@ _PROFILES: dict[str, dict[str, Any]] = { "image_tool_message": True, "tool_choice": True, }, + "gpt-4": { + "max_input_tokens": 8192, + "max_output_tokens": 8192, + "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": True, + "structured_output": 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, + "text_inputs": True, + "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": True, + "structured_output": True, + "image_url_inputs": True, + "pdf_inputs": True, + "pdf_tool_message": True, + "image_tool_message": True, + "tool_choice": True, + }, + "o1-mini": { + "max_input_tokens": 128000, + "max_output_tokens": 65536, + "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": True, + "tool_calling": False, + "structured_output": True, + "image_url_inputs": True, + "pdf_inputs": True, + "pdf_tool_message": True, + "image_tool_message": True, + "tool_choice": True, + }, + "gpt-4o": { + "max_input_tokens": 128000, + "max_output_tokens": 16384, + "text_inputs": True, + "image_inputs": True, + "audio_inputs": False, + "video_inputs": False, + "text_outputs": True, + "image_outputs": False, + "audio_outputs": False, + "video_outputs": False, + "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, + }, }