-
-
Notifications
You must be signed in to change notification settings - Fork 12.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] 调用gemini2.0-pro-exp时不能设置系统提示词 #6962
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Hey @Coooolfan! I'm here to help you with any bugs, questions, or contributions. Let's work on solving this issue together while we wait for a human maintainer. The issue you're encountering with the gemini2.0-pro-exp model is due to the limited support for Tools Calling capabilities in Google Gemini models. The error message indicates an "Invalid JSON payload" because of unsupported JSON schema properties, such as 'default', in the request payload. When you remove the system prompt words, it likely alters the payload to exclude these unsupported properties, thus resolving the error. To fix this, you should disable plugins and function calls in your implementation [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 |
+1 |
This issue is closed, If you have any questions, you can comment and reply. |
🎉 This issue has been resolved in version 1.71.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@arvinxx 大佬😭 1.71.2 {
"error": {
"message": "[GoogleGenerativeAI Error]: Error fetching from https://******.com/v1beta/models/gemini-2.0-flash-exp:streamGenerateContent?alt=sse: [400 ] Function calling is not enabled for models/gemini-2.0-flash-exp"
},
"provider": "google"
} |
📦 Platform
Self hosting Docker
📦 Deploymenet mode
server db(lobe-chat-database image)
📌 Version
1.71.0
💻 Operating System
macOS
🌐 Browser
Edge
🐛 Bug Description
默认助手和自定义助手包含系统提示词时,对gemini2.0-pro-exp的请求会报错:
将提示词调整为空就没事了。只在网上找到一个相关的帖子:https://linux.do/t/topic/490329/74
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: