This commit is contained in:
Ishaan Jaffer 2026-02-12 12:44:47 -08:00
parent 1ca06e086a
commit cbe30a68fd
3 changed files with 6 additions and 24 deletions

View file

@ -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",

View file

@ -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"
]

View file

@ -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."