From 274bf4249378adc5790f7e508e462c375a020bf5 Mon Sep 17 00:00:00 2001 From: Cesar Garcia <128240629+Chesars@users.noreply.github.com> Date: Wed, 11 Mar 2026 14:13:56 -0300 Subject: [PATCH] Update docs/my-website/docs/providers/openai.md Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- docs/my-website/docs/providers/openai.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/my-website/docs/providers/openai.md b/docs/my-website/docs/providers/openai.md index adddc3efc4a..8c4108455ab 100644 --- a/docs/my-website/docs/providers/openai.md +++ b/docs/my-website/docs/providers/openai.md @@ -675,17 +675,18 @@ To use built-in tools like `web_search_preview` with `mode: chat` models, add th # This will FAIL - gpt-4o has mode: chat, uses Chat Completions API response = litellm.completion( model="gpt-4o", + messages=[{"role": "user", "content": "What is the weather in Paris today?"}], tools=[{"type": "web_search_preview"}], # Not supported in Chat Completions - ... + # ... other kwargs ) # This will WORK - prefix forces Responses API response = litellm.completion( model="openai/responses/gpt-4o", + messages=[{"role": "user", "content": "What is the weather in Paris today?"}], tools=[{"type": "web_search_preview"}], # Supported in Responses API - ... + # ... other kwargs ) -``` ### Examples