sourcegraph/cody

when switch AI models get error 400

Closed this issue · 5 comments

Type: Bug

Extension Information

  • Cody Version: 1.42.0
  • VS Code Version: 1.95.3
  • Extension Host: desktop

Steps to Reproduce

Expected Behaviour

Logs

Request Failed: Sourcegraph Cody Gateway: unexpected status code 400: {"error":"model "google/gemini-1.5-flash" is not allowed, allowed: []"}

Extension version: 1.42.0
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Darwin arm64 23.6.0
Modes:

System Info
Item Value
CPUs Apple M3 (8 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 3, 3, 4
Memory (System) 16.00GB (0.10GB free)
Process Argv --crash-reporter-id 2a19f6b1-f73c-4709-a20f-2dc81b3953ef
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
da93g388:31013173
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc2:31134642
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

@GS-Sharon

Thank you for reporting this issue. The team is informed about it.

Does this happen on all models or just the Google models?
Do you have a stable network connection?

Thank you @GS-Sharon for the additional information.

The team will have a look at it.