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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test open ai web search
Ishaan Jaff3764aa172986
diff --git a/tests/llm_translation/test_openai.py b/tests/llm_translation/test_openai.pyindex 172c946636e..456190469ab 100644--- a/tests/llm_translation/test_openai.py+++ b/tests/llm_translation/test_openai.py@@ -391,3 +391,17 @@ def test_openai_chat_completion_streaming_handler_reasoning_content():)assert response.choices[0].delta.reasoning_content == "."+++def test_openai_web_search():+ # litellm._turn_on_debug()+ response = litellm.completion(+ model="openai/gpt-4o-search-preview",+ messages=[+ {+ "role": "user",+ "content": "What was a positive news story from today?",+ }+ ],+ )+ print("litellm response: ", response.model_dump_json(indent=4))