sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
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

quentin-lior commented 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.

abeatrix commented 1 month ago

@quentin-lior Thanks for reporting the issue! We were able to locate the issue and has bee been fixed now 😄

abeatrix commented 1 month ago

Close by https://github.com/sourcegraph/sourcegraph/pull/63258