From 6023427daecae22eeefb82644d1dddc00ba9e4c1 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Wed, 23 Apr 2025 21:54:12 -0700 Subject: [PATCH] docs(gemini.md): cleanup --- docs/my-website/docs/providers/gemini.md | 4 ++-- docs/my-website/docs/providers/vertex.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/my-website/docs/providers/gemini.md b/docs/my-website/docs/providers/gemini.md index 434df6a7c9..957c5c13c2 100644 --- a/docs/my-website/docs/providers/gemini.md +++ b/docs/my-website/docs/providers/gemini.md @@ -655,7 +655,7 @@ import os os.environ["GEMINI_API_KEY"] = ".." -tools = [{"googleSearchRetrieval": {}}] # 👈 ADD GOOGLE SEARCH +tools = [{"googleSearch": {}}] # 👈 ADD GOOGLE SEARCH response = completion( model="gemini/gemini-2.0-flash", @@ -691,7 +691,7 @@ curl -X POST 'http://0.0.0.0:4000/chat/completions' \ -d '{ "model": "gemini-2.0-flash", "messages": [{"role": "user", "content": "What is the weather in San Francisco?"}], - "tools": [{"googleSearchRetrieval": {}}] + "tools": [{"googleSearch": {}}] } ' ``` diff --git a/docs/my-website/docs/providers/vertex.md b/docs/my-website/docs/providers/vertex.md index 7f60de27ee..b328c80577 100644 --- a/docs/my-website/docs/providers/vertex.md +++ b/docs/my-website/docs/providers/vertex.md @@ -364,7 +364,7 @@ from litellm import completion ## SETUP ENVIRONMENT # !gcloud auth application-default login - run this to add vertex credentials to your env -tools = [{"googleSearchRetrieval": {}}] # 👈 ADD GOOGLE SEARCH +tools = [{"googleSearch": {}}] # 👈 ADD GOOGLE SEARCH resp = litellm.completion( model="vertex_ai/gemini-1.0-pro-001", @@ -391,7 +391,7 @@ client = OpenAI( response = client.chat.completions.create( model="gemini-pro", messages=[{"role": "user", "content": "Who won the world cup?"}], - tools=[{"googleSearchRetrieval": {}}], + tools=[{"googleSearch": {}}], ) print(response) @@ -410,7 +410,7 @@ curl http://localhost:4000/v1/chat/completions \ ], "tools": [ { - "googleSearchRetrieval": {} + "googleSearch": {} } ] }' @@ -529,7 +529,7 @@ from litellm import completion # !gcloud auth application-default login - run this to add vertex credentials to your env -tools = [{"googleSearchRetrieval": {"disable_attributon": False}}] # 👈 ADD GOOGLE SEARCH +tools = [{"googleSearch": {"disable_attributon": False}}] # 👈 ADD GOOGLE SEARCH resp = litellm.completion( model="vertex_ai/gemini-1.0-pro-001",