mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
docs fix
This commit is contained in:
parent
1ca06e086a
commit
cbe30a68fd
3 changed files with 6 additions and 24 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue