mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
loosen allowed types on ComputerToolParam
This commit is contained in:
parent
c80e984d7e
commit
b888ba6fe4
1 changed files with 14 additions and 1 deletions
|
@ -892,6 +892,19 @@ OpenAIAudioTranscriptionOptionalParams = Literal[
|
||||||
OpenAIImageVariationOptionalParams = Literal["n", "size", "response_format", "user"]
|
OpenAIImageVariationOptionalParams = Literal["n", "size", "response_format", "user"]
|
||||||
|
|
||||||
|
|
||||||
|
class ComputerToolParam(TypedDict, total=False):
|
||||||
|
display_height: Required[float]
|
||||||
|
"""The height of the computer display."""
|
||||||
|
|
||||||
|
display_width: Required[float]
|
||||||
|
"""The width of the computer display."""
|
||||||
|
|
||||||
|
environment: Required[Union[Literal["mac", "windows", "ubuntu", "browser"], str]]
|
||||||
|
"""The type of computer environment to control."""
|
||||||
|
|
||||||
|
type: Required[Union[Literal["computer_use_preview"], str]]
|
||||||
|
|
||||||
|
|
||||||
class ResponsesAPIOptionalRequestParams(TypedDict, total=False):
|
class ResponsesAPIOptionalRequestParams(TypedDict, total=False):
|
||||||
"""TypedDict for Optional parameters supported by the responses API."""
|
"""TypedDict for Optional parameters supported by the responses API."""
|
||||||
|
|
||||||
|
@ -907,7 +920,7 @@ class ResponsesAPIOptionalRequestParams(TypedDict, total=False):
|
||||||
temperature: Optional[float]
|
temperature: Optional[float]
|
||||||
text: Optional[ResponseTextConfigParam]
|
text: Optional[ResponseTextConfigParam]
|
||||||
tool_choice: Optional[ToolChoice]
|
tool_choice: Optional[ToolChoice]
|
||||||
tools: Optional[List[ToolParam]]
|
tools: Optional[List[Union[ToolParam, ComputerToolParam]]]
|
||||||
top_p: Optional[float]
|
top_p: Optional[float]
|
||||||
truncation: Optional[Literal["auto", "disabled"]]
|
truncation: Optional[Literal["auto", "disabled"]]
|
||||||
user: Optional[str]
|
user: Optional[str]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue