Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
docs(gemini): update to use gemini 3.7 and new models
Mark McDonalde3d2c093e394
diff --git a/python/providers/gemini/gemini_demo.py b/python/providers/gemini/gemini_demo.pyindex e6fb5101c..9e2cc3347 100644--- a/python/providers/gemini/gemini_demo.py+++ b/python/providers/gemini/gemini_demo.py@@ -21,6 +21,6 @@ config = types.GenerateContentConfig()# Use the chat interface.-chat = client.chats.create(model="gemini-2.0-flash", config=config)+chat = client.chats.create(model="gemini-3.7-flash", config=config)response = chat.send_message("Can you star composiohq/composio repository on github")print(response.text)diff --git a/python/providers/google/README.md b/python/providers/google/README.mdindex 9be4e206d..0d25f6397 100644--- a/python/providers/google/README.md+++ b/python/providers/google/README.md@@ -30,7 +30,7 @@ session = composio.create(user_id="user_123")tools = session.tools()model = GenerativeModel(- "gemini-2.0-flash",+ "gemini-3.7-flash",tools=[Tool(function_declarations=tools)],)chat = model.start_chat()diff --git a/python/providers/google/google_demo.py b/python/providers/google/google_demo.pyindex dec521c55..dffdec1b8 100644--- a/python/providers/google/google_demo.py+++ b/python/providers/google/google_demo.py@@ -18,7 +18,7 @@ composio = Composio(provider=GoogleProvider())tool = composio.tools.get(user_id="default", toolkits=["GITHUB"])# Initialize the Gemini model-model = GenerativeModel("gemini-1.5-pro", tools=[tool])+model = GenerativeModel("gemini-3.7-flash", tools=[tool])# Start a chat sessionchat = model.start_chat()diff --git a/ts/docs/providers/google.md b/ts/docs/providers/google.mdindex 9870fec28..f81c75988 100644--- a/ts/docs/providers/google.md+++ b/ts/docs/providers/google.md@@ -41,7 +41,7 @@ const task = "Fetch the details of the user 'haxzie'";// Generate content with function callingconst response = await ai.models.generateContent({- model: 'gemini-2.0-flash-001',+ model: 'gemini-3.7-flash',contents: task,config: {tools: [{ functionDeclarations: tools }],@@ -88,10 +88,11 @@ const ai = new GoogleGenAI({## Supported Models-- `gemini-2.0-flash-001` - Fast, efficient model for most use cases-- `gemini-2.0-pro-001` - Advanced model with enhanced capabilities-- `gemini-1.5-flash-001` - Legacy model for backward compatibility-- `gemini-1.5-pro-001` - Legacy model with advanced capabilities+- `gemini-3.7-flash` - Fast, efficient default model for most use cases+- `gemini-3.1-pro-preview` - Advanced model with enhanced reasoning and coding capabilities+- `gemini-3.5-flash-lite` - Fastest and lowest-cost option for lightweight tasks+- `gemini-2.5-flash` - Fast model with thinking capabilities+- `gemini-2.5-pro` - Advanced reasoning model## Function Calling