无法正常使用Gemini API
API地址 https://generativelanguage.googleapis.com/v1beta 报错:连接测试失败, HTTP status: 400, error: [{ "error": { "code": 400, "message": "Invalid JSON payload received. Unknown name "enable_thinking": Cannot find field.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.rpc.BadRequest", "fieldViolations": [ { "description": "Invalid JSON payload received. Unknown name "enable_thinking": Cannot find field." } ] } ] } } ] 所有gemini系模型均不能使用
Hello, thank you for the detailed error report, including the API address and the specific error message!
You have correctly identified the issue: the error Unknown name "enable_thinking" is occurring because the request payload contains parameters specific to the Gemini API but is being processed by a system designed to strictly follow the OpenAI API specification.
Current Limitation: Our custom API functionality is built solely on the OpenAI API specification.
Recommended Actions:
For Official Gemini Models: If you are using an official Google/Gemini Studio AI API, we recommend adding the model through the dedicated "Gemini Platform" entry point we provide, not the general "Custom API" section.
Regarding the Test Link: Currently, the "Test Link" function is only designed to work reliably with OpenAI-compliant APIs. If you add the model via the dedicated Gemini Platform, the link test may still fail, but the model should still be usable within the agent and chat flows.
Please try adding your model via the designated Gemini Platform area. Let us know if the issue persists after following this method!
We are tracking the work to add this feature in issue #62. Please follow that issue for updates.
I am closing this as a duplicate of #62.