Incorrect parameters setting for gemini models on Vertex AI
Self Checks
- [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [x] Please do not modify this template :) and fill in all the required fields.
Dify version
0.15.3
Cloud or Self Hosted
Cloud
Steps to reproduce
Structure output parameter name should be 'response_schema' according to the documentation.
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
The error you're encountering is due to using the incorrect parameter name json_schema instead of response_schema when configuring the Gemini models on Vertex AI. According to the Dify codebase, the integration with Vertex AI's Gemini models uses the json_schema parameter under parameter_rules in the configuration files [1]. However, the correct parameter name for structured output, as per the Vertex AI documentation, should be response_schema. You should update your configuration to use response_schema to resolve this issue.
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
Close due to the upgrade of v1.0, please see https://github.com/langgenius/dify-official-plugins/issues/341