-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
gemini api检测能通过 但是对话始终报错 #4949
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
The error you're encountering with the Gemini API is due to unsupported JSON schema properties like There are similar discussions on this topic, such as the one titled "gemini api检查能过 但是聊天就报错" which is still open and might provide additional insights or solutions as they become available [3]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
解决了 禁用所有插件就好 |
The solution is to disable all plug-ins. |
#4555 |
#4555 |
试过新建api也不行
{
"error": {
"message": "[GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-exp-1206:streamGenerateContent?alt=sse: [400 ] Invalid JSON payload received. Unknown name "default" at 'tools[0].function_declarations[2].parameters.properties[1].value': Cannot find field.\nInvalid JSON payload received. Unknown name "default" at 'tools[0].function_declarations[2].parameters.properties[3].value': Cannot find field.\nInvalid JSON payload received. Unknown name "default" at 'tools[0].function_declarations[2].parameters.properties[4].value': Cannot find field. [{"@type":"type.googleapis.com/google.rpc.BadRequest","fieldViolations":[{"field":"tools[0].function_declarations[2].parameters.properties[1].value","description":"Invalid JSON payload received. Unknown name "default" at 'tools[0].function_declarations[2].parameters.properties[1].value': Cannot find field."},{"field":"tools[0].function_declarations[2].parameters.properties[3].value","description":"Invalid JSON payload received. Unknown name "default" at 'tools[0].function_declarations[2].parameters.properties[3].value': Cannot find field."},{"field":"tools[0].function_declarations[2].parameters.properties[4].value","description":"Invalid JSON payload received. Unknown name "default" at 'tools[0].function_declarations[2].parameters.properties[4].value': Cannot find field."}]}]"
},
"provider": "google"
}
The text was updated successfully, but these errors were encountered: