when switch AI models get error 400
Closed this issue · 5 comments
GS-Sharon commented
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 commented
PriNova commented
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?
GS-Sharon commented
But it works again now. I don't know why. At that time, I checked that the network was accessible, because I switched to another model, such as Haiku,can got response, but Gemini Flash kept not working, sometimes it told me that the number of times reached the upper limit, but most of them reported 400
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2024年11月19日(星期二) 晚上6:00
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [sourcegraph/cody] when switch AI models get error 400 (Issue #6152)
@GS-Sharon
Does this happens with all models or only with the Google models?
Have you a stable network connection?
Thank you for reporting this issue. The team is informed about the issue.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
PriNova commented
Thank you @GS-Sharon for the additional information.
The team will have a look at it.