Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
2.3k
stars
219
forks
source link
bug: error 400 with Gemini 1.5 pro : Invalid JSON payload received. Unknown name \"stream\": Cannot find field. #4566
Closed
quentin-lior closed 1 month ago
Version
1.22.0
Describe the bug
When using the new Gemini 1.5 pro, I get the following error : Request Failed: Sourcegraph Cody Gateway: unexpected status code 400: { "error": { "code": 400, "message": "Invalid JSON payload received. Unknown name \"stream\": Cannot find field.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.rpc.BadRequest", "fieldViolations": [ { "description": "Invalid JSON payload received. Unknown name \"stream\": Cannot find field." } ] } ] } }
Expected behavior
It should properly answer the request.
Additional context
I am getting the error even without context.