gemini api检查能过 但是聊天就报错 #4946
Unanswered
flyhunterl
asked this question in
General Question | 普通问题
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
试过新建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"
}
Beta Was this translation helpful? Give feedback.
All reactions