mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Error when using tools with Vertex AI models #302
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghwany on GitHub (May 20, 2025).
Self Checks
Dify version
1.4.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
After adding the tool to the
gemini-2.5-flash-preview-04-17model in Vertex AI, the following error occurs when queried.Other models in Vertex AI have the same issue and work fine when I remove the tool.
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (May 20, 2025):
Hello @ghwany! I'm Dosu, your friendly bot here to help you solve bugs, answer questions, and guide you towards becoming a contributor. While you wait for a human maintainer, feel free to let me know how I can assist you! 🐾
To resolve the
PluginInvokeErrorrelated to the missingSchemaattribute in thevertexai.generative_modelsmodule when using thegemini-2.5-flash-preview-04-17model with tools in Vertex AI, you need to disable both the JSON Schema setting and agent tools. The model does not support JSON Schema functionality, which leads to the error [1].To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
@jortegac commented on GitHub (May 26, 2025):
I've been trying to use my custom tool with Gemini through the Vertex plugin. I updated the Gemini plugin to 0.0.15 which has this fix in place.
I used the get the same error as the original comment, now I get the following error:
Context:
currentTimeit also has the same issue@ghwany commented on GitHub (May 28, 2025):
I made the changes and registered the PR. #991
Thx u.