Google Models cannot call tools anymore #7810

Closed
opened 2026-02-16 18:08:18 -05:00 by yindo · 2 comments
Owner

Originally created by @ahumandev on GitHub (Jan 28, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

1.1.36 worked fine. I made the mistake to upgrade to 1.1.37 Since the upgrade my Google models no longer are able to make tool calls. Instead it prints the instructions that was intended for the tool call to the user without calling the tools. This applies to all tools.

It is worth noting the Anthropic models still seem to work as intended.

However, the Open AI models now respond with "bad requests" but it could also be due to rate limiting issues as I maxed out my credits already on that subscription.

Plugins

"opencode-pty", "@plannotator/opencode", "@zenobius/opencode-skillful", "opencode-antigravity-auth@latest"

OpenCode version

1.1.37

Steps to reproduce

Request a Google model to make a tool call.

Screenshot and/or share link

Image

Operating System

WSL (Ubuntu 24.04) on Windows 11

Terminal

Windows Terminal, IntelliJ's build-in terminal

Originally created by @ahumandev on GitHub (Jan 28, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description 1.1.36 worked fine. I made the mistake to upgrade to 1.1.37 Since the upgrade my Google models no longer are able to make tool calls. Instead it prints the instructions that was intended for the tool call to the user without calling the tools. This applies to all tools. It is worth noting the Anthropic models still seem to work as intended. However, the Open AI models now respond with "bad requests" but it could also be due to rate limiting issues as I maxed out my credits already on that subscription. ### Plugins "opencode-pty", "@plannotator/opencode", "@zenobius/opencode-skillful", "opencode-antigravity-auth@latest" ### OpenCode version 1.1.37 ### Steps to reproduce Request a Google model to make a tool call. ### Screenshot and/or share link <img width="1602" height="1214" alt="Image" src="https://github.com/user-attachments/assets/8f67c653-638b-42e8-a708-bc0388239e29" /> ### Operating System WSL (Ubuntu 24.04) on Windows 11 ### Terminal Windows Terminal, IntelliJ's build-in terminal
yindo added the windowsbug labels 2026-02-16 18:08:18 -05:00
yindo closed this issue 2026-02-16 18:08:18 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 28, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #9233: LiteLLM Proxy: Vertex AI Gemini models fail for tools with empty parameters - similar tool calling issues with Google/Vertex AI Gemini models
  • #9570: [FEATURE]:Support Gemini API by trimming/adapting tool descriptions - Gemini models failing tool invocations due to strict validation
  • #8184: Strict JSON Schema validation fail on backends like SGLang (Missing required field in empty tool parameters) - related to JSON Schema validation for tools with empty parameters
  • #8008: Tool calling broken with 1.1.14 and gemini-2.5-pro - previous version with similar tool calling breakage in Gemini models

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 28, 2026): This issue might be a duplicate of existing issues. Please check: - #9233: LiteLLM Proxy: Vertex AI Gemini models fail for tools with empty parameters - similar tool calling issues with Google/Vertex AI Gemini models - #9570: [FEATURE]:Support Gemini API by trimming/adapting tool descriptions - Gemini models failing tool invocations due to strict validation - #8184: Strict JSON Schema validation fail on backends like SGLang (Missing required field in empty tool parameters) - related to JSON Schema validation for tools with empty parameters - #8008: Tool calling broken with 1.1.14 and gemini-2.5-pro - previous version with similar tool calling breakage in Gemini models Feel free to ignore if none of these address your specific case.
Author
Owner

@ahumandev commented on GitHub (Jan 28, 2026):

After upgrading to version 1.1.38, the problem was resolved.

@ahumandev commented on GitHub (Jan 28, 2026): After upgrading to version 1.1.38, the problem was resolved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7810