zed
zed copied to clipboard
"Error interacting with language model: unknown error"
Check for existing issues
- [X] Completed
Describe the bug / provide steps to reproduce it
Using "gpt-4" via OpenAI. The response is partially generated, but then might be hitting an output token limit or something. Regardless, the "unknown error" is insufficiently helpful for diagnosing!
Environment
Zed: v0.155.1 (Zed Preview) OS: macOS 14.7.0 Memory: 32 GiB Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
If applicable, attach your Zed.log file to this issue.
no relevant log entries
I get the same, also with gemini flash and pro. I also see "missing field 'content' at line 1 column 359.
@reider-dev
I was trying to let Gemini summarize some text within Zed.
I also got the exact same error message with Gemini 1.5 flash:
When I gave the same question to the web interface, this was the answer:
Sounds reasonable and might suggest there is better solution. I have yet to see the same errors using VSCode with the same Copilot and Gemini accounts.
From: KZ @.> Sent: Sunday, October 6, 2024 8:04:04 PM To: zed-industries/zed @.> Cc: Reider Forest @.>; Mention @.> Subject: Re: [zed-industries/zed] "Error interacting with language model: unknown error" (Issue #18561)
I get this error very frequently when using AI. This error is from isahc: https: //docs. rs/isahc/latest/isahc/error/enum. ErrorKind. html I suspect there are bugs in isahc http_client, since this library is not maintained, latest update is 2022
I get this error very frequently when using AI.
This error is from isahc: https://docs.rs/isahc/latest/isahc/error/enum.ErrorKind.htmlhttps://urldefense.com/v3/__https://docs.rs/isahc/latest/isahc/error/enum.ErrorKind.html__;!!BmfVKN8_!eKMEiRF0BX3DpT_gizpT8ze6wXTz62qYronSGjWnP0AEhmEHa3s1FnFA2TfFxiXFcpRDc4FNuAUynVLfQViqk9zrW4nRIQ$
I suspect there are bugs in isahc http_client, since this library is not maintained, latest update is 2022
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/zed-industries/zed/issues/18561*issuecomment-2395528083__;Iw!!BmfVKN8_!eKMEiRF0BX3DpT_gizpT8ze6wXTz62qYronSGjWnP0AEhmEHa3s1FnFA2TfFxiXFcpRDc4FNuAUynVLfQViqk9xKSE_Mbw$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/BFOWSAAH5BOOW2TBK4WQIF3Z2F3RJAVCNFSM6AAAAABPEXWENGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGUZDQMBYGM__;!!BmfVKN8_!eKMEiRF0BX3DpT_gizpT8ze6wXTz62qYronSGjWnP0AEhmEHa3s1FnFA2TfFxiXFcpRDc4FNuAUynVLfQViqk9zw3swwRA$. You are receiving this because you were mentioned.Message ID: @.***>
@reider-dev I think I replied to wrong ticket, what I get is "the server made an unrecoverable HTTP protocol violation".
I'm also having this issue with both Gemini 1.5 pro and flash, with flash getting further along the output
I wonder whether this is the same underlying issue as:
- https://github.com/zed-industries/zed/issues/17515
We recently landed a significant set of changes to our http_client and I believe this may now be solved. Can someone build from main and see if the issue is fixed there?
I wonder whether this is the same underlying issue as:
We recently landed a significant set of changes to our http_client and I believe this may now be solved. Can someone build from main and see if the issue is fixed there?
From my side it looks likely (sorry, not proficient enough build from main).
i ran in the same problem. Is it because there is a problem with the api access, maybe?
i ran in the same problem. Is it because there is a problem with the api access, maybe?
got it. Log in your Zed account (via github e.g) and then go to "Configure". Check the Terms of Service. Restart
I believe this has been resolved in an intervening Zed update. If you are still seeing this issue with a current Zed, please open a clean issue with steps to reproduce.
Thanks for reporting.