-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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] lobechat中gemini使用插件会报错400 #6992
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Hello, @Passerby1011! I'm here to help you with any bugs, questions, or contributions while we wait for a human maintainer. Let's tackle this together! The 400 error you're encountering with the Gemini model in LobeChat when using plugins on version 1.71.3 is likely due to issues with function declarations in the API request. Specifically, the error message indicates a problem with the JSON payload, particularly with the "GenerateContentRequest.tools[0].function_declarations[0].parameters.properties[_requestBody].properties[data].items.items.type" not being specified when not using "one_of". To resolve this error, it is recommended to disable plugins/function calls when using the Gemini model [1][2]. 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 |
gemini模型对插件是兼容不好,所以是不建议使用插件的 |
The gemini model is not compatible with plug-ins, so it is not recommended to use plug-ins. |
应该是bug,之前正常的,现在只要向 {
"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"
} v1.71.5 |
@Coooolfan 这看着像是 Google 那边禁用的。 |
@Coooolfan This looks like it is disabled on Google. |
@Passerby1011 “谷歌自定义搜索引擎”插件的一点小问题,在下面的 pr 未被合并之前,可以先禁用它。 |
@Passerby1011 A little bit of a problem with the "Google Custom Search Engine" plugin, you can disable it before the pr below is merged. |
📦 Platform
Official Preview, Self hosting Docker
📦 Deploymenet mode
server db(lobe-chat-database image)
📌 Version
1.71.3
💻 Operating System
Windows
🌐 Browser
Chrome, Other, Edge
🐛 Bug Description
gemini模型,带了3个插件,下面是请求体
报错:
📷 Recurrence Steps
gemini模型,带了3个插件,下面是请求体
🚦 Expected Behavior
正常对话
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: