From cbe30a68fd4a9152345b073f74a2f9487230ffd4 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Thu, 12 Feb 2026 12:44:47 -0800 Subject: [PATCH] docs fix --- docs/my-website/docs/response_api.md | 6 ++--- litellm/types/llms/openai.py | 22 ++----------------- .../base_responses_api.py | 2 +- 3 files changed, 6 insertions(+), 24 deletions(-) diff --git a/docs/my-website/docs/response_api.md b/docs/my-website/docs/response_api.md index 80351409068..dd2b77712c4 100644 --- a/docs/my-website/docs/response_api.md +++ b/docs/my-website/docs/response_api.md @@ -1105,7 +1105,7 @@ Supported when using the `openai` or `azure` provider with a model that supports import litellm response = litellm.responses( - model="openai/gpt-4o", + model="openai/gpt-5.2", input="List files in /mnt/data and run python --version.", tools=[{"type": "shell", "environment": {"type": "container_auto"}}], tool_choice="auto", @@ -1128,7 +1128,7 @@ client = OpenAI( ) response = client.responses.create( - model="openai/gpt-4o", + model="openai/gpt-5.2", input="List files in /mnt/data.", tools=[{"type": "shell", "environment": {"type": "container_auto"}}], tool_choice="auto", @@ -1143,7 +1143,7 @@ curl -X POST "http://localhost:4000/v1/responses" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your-proxy-api-key" \ -d '{ - "model": "openai/gpt-4o", + "model": "openai/gpt-5.2", "input": "List files in /mnt/data.", "tools": [{"type": "shell", "environment": {"type": "container_auto"}}], "tool_choice": "auto", diff --git a/litellm/types/llms/openai.py b/litellm/types/llms/openai.py index 15be19b9802..4ab81f8fd57 100644 --- a/litellm/types/llms/openai.py +++ b/litellm/types/llms/openai.py @@ -1064,10 +1064,10 @@ class ShellToolParam(TypedDict, total=False): See https://developers.openai.com/api/docs/guides/tools-shell. """ - type: str + type: Required[Union[Literal["shell"], str]] """The type of tool. Use ``\"shell\"``.""" - environment: Dict[str, Any] + environment: Required[Dict[str, Any]] """Environment config: ``type`` (e.g. ``\"container_auto\"``, ``\"container_reference\"``, ``\"local\"``), optional ``container_id``, ``network_policy``, ``domain_secrets``, ``skills``.""" @@ -1179,24 +1179,6 @@ class ResponseAPIUsage(BaseLiteLLMOpenAIResponseObject): model_config = {"extra": "allow"} -# Optional typing for reasoning fields; API may add new values. Prefer Dict[str, Any] -# for response parsing so new effort/summary values and new fields are accepted. -ResponsesAPIReasoningEffort = str # known: "none", "minimal", "low", "medium", "high", "xhigh" - - -class ResponsesAPIReasoning(BaseLiteLLMOpenAIResponseObject): - """ - Reasoning info on a Responses API response. All fields are optional str to accept - current API values and any new values OpenAI adds. Extra fields are allowed. - """ - - model_config = ConfigDict(extra="allow") - - effort: Optional[str] = None - generate_summary: Optional[str] = None - summary: Optional[str] = None - - ResponsesAPIStatus = Literal[ "completed", "failed", "in_progress", "cancelled", "queued", "incomplete" ] diff --git a/tests/llm_responses_api_testing/base_responses_api.py b/tests/llm_responses_api_testing/base_responses_api.py index eb542b0d0ff..7ac83753d17 100644 --- a/tests/llm_responses_api_testing/base_responses_api.py +++ b/tests/llm_responses_api_testing/base_responses_api.py @@ -763,7 +763,7 @@ class BaseResponsesAPITest(ABC): base_completion_call_args = self.get_base_completion_call_args() model = self.get_advanced_model_for_shell_tool() or base_completion_call_args.get( "model" - ) or "gpt-5.2" + ) or "openai/gpt-5.2" tools = [{"type": "shell", "environment": {"type": "container_auto"}}] input_msg = "List files in /mnt/data and run python --version."