Pre-commit

Signed-off-by: Aakanksha Duggal <aduggal@redhat.com>
This commit is contained in:
Aakanksha Duggal 2025-11-07 09:24:08 -05:00
parent d08f62ff98
commit 4ce33c01d4
4 changed files with 12 additions and 3 deletions

View file

@ -6791,6 +6791,8 @@ components:
const: web_search_preview const: web_search_preview
- type: string - type: string
const: web_search_preview_2025_03_11 const: web_search_preview_2025_03_11
- type: string
const: web_search_2025_08_26
default: web_search default: web_search
description: Web search tool type variant to use description: Web search tool type variant to use
search_context_size: search_context_size:

View file

@ -6075,6 +6075,8 @@ components:
const: web_search_preview const: web_search_preview
- type: string - type: string
const: web_search_preview_2025_03_11 const: web_search_preview_2025_03_11
- type: string
const: web_search_2025_08_26
default: web_search default: web_search
description: Web search tool type variant to use description: Web search tool type variant to use
search_context_size: search_context_size:

View file

@ -6791,6 +6791,8 @@ components:
const: web_search_preview const: web_search_preview
- type: string - type: string
const: web_search_preview_2025_03_11 const: web_search_preview_2025_03_11
- type: string
const: web_search_2025_08_26
default: web_search default: web_search
description: Web search tool type variant to use description: Web search tool type variant to use
search_context_size: search_context_size:

View file

@ -415,9 +415,12 @@ class OpenAIResponseInputToolWebSearch(BaseModel):
""" """
# Must match values of WebSearchToolTypes above # Must match values of WebSearchToolTypes above
type: Literal["web_search"] | Literal["web_search_preview"] | Literal["web_search_preview_2025_03_11"] | Literal["web_search_2025_08_26"] = ( type: (
"web_search" Literal["web_search"]
) | Literal["web_search_preview"]
| Literal["web_search_preview_2025_03_11"]
| Literal["web_search_2025_08_26"]
) = "web_search"
# TODO: actually use search_context_size somewhere... # TODO: actually use search_context_size somewhere...
search_context_size: str | None = Field(default="medium", pattern="^low|medium|high$") search_context_size: str | None = Field(default="medium", pattern="^low|medium|high$")
# TODO: add user_location # TODO: add user_location