Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

WebSearchOptions

Ishaan Jaff1910ed602797
diff --git a/litellm/types/utils.py b/litellm/types/utils.py
index a7894e424c8..6b027ab8b77 100644
--- a/litellm/types/utils.py
+++ b/litellm/types/utils.py
@@ -33,6 +33,7 @@ from .llms.openai import (
ChatCompletionToolCallChunk,
ChatCompletionUsageBlock,
OpenAIChatCompletionChunk,
+ WebSearchOptions,
)
from .rerank import RerankResponse
@@ -1622,6 +1623,18 @@ class StandardLoggingUserAPIKeyMetadata(TypedDict):
user_api_key_end_user_id: Optional[str]
+class StandardBuiltInToolsParams(TypedDict, total=False):
+ """
+ Standard built-in OpenAItools parameters
+
+ This is used to calculate the cost of built-in tools, insert any standard built-in tools parameters here
+
+ OpenAI charges users based on the `web_search_options` parameter
+ """
+
+ web_search_options: Optional[WebSearchOptions]
+
+
class StandardLoggingPromptManagementMetadata(TypedDict):
prompt_id: str
prompt_variables: Optional[dict]