zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.28k stars 2.74k forks source link

AI prompts fails with error `failed to stream completion` #17821

Open sud0bug opened 6 days ago

sud0bug commented 6 days ago

Check for existing issues

Describe the bug / provide steps to reproduce it

All queries/prompts to LLMs through the inline assistant or in a new context window fails with the error shown in the attached screenshot. I have successfully configured the Anthropic API keys and am using Claude 3.5 Sonnet. Strangely, this was working a few days ago. The telemetry logs don't provide much detail on the issue, but I've attached them for reference. Any assistance in debugging this issue would be greatly appreciated.

image

Environment

Zed: v0.152.3 (Zed) OS: macOS 14.6.1 Memory: 16 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log
// Zed collects anonymous usage data to help us understand how people are using the app.
// Telemetry can be disabled via the `settings.json` file.
// Here is the data that has been reported for the current session:

{"signed_in":false,"milliseconds_since_first_event":36,"type":"Extension","extension_id":"html","version":"0.1.2"}
{"signed_in":false,"milliseconds_since_first_event":36,"type":"Extension","extension_id":"svelte","version":"0.1.1"}
{"signed_in":false,"milliseconds_since_first_event":53,"type":"Setting","setting":"theme","value":"One Dark"}
{"signed_in":false,"milliseconds_since_first_event":53,"type":"Setting","setting":"keymap","value":"VSCode"}
{"signed_in":false,"milliseconds_since_first_event":0,"type":"App","operation":"open node project"}
{"signed_in":false,"milliseconds_since_first_event":246,"type":"Editor","operation":"open","file_extension":"svelte","vim_mode":false,"copilot_enabled":true,"copilot_enabled_for_language":true}
{"signed_in":false,"milliseconds_since_first_event":247,"type":"Editor","operation":"open","file_extension":"svelte","vim_mode":false,"copilot_enabled":true,"copilot_enabled_for_language":true}
{"signed_in":false,"milliseconds_since_first_event":247,"type":"Editor","operation":"open","file_extension":"json","vim_mode":false,"copilot_enabled":true,"copilot_enabled_for_language":true}
{"signed_in":false,"milliseconds_since_first_event":247,"type":"Editor","operation":"open","file_extension":"svelte","vim_mode":false,"copilot_enabled":true,"copilot_enabled_for_language":true}
{"signed_in":false,"milliseconds_since_first_event":247,"type":"Editor","operation":"open","file_extension":"ts","vim_mode":false,"copilot_enabled":true,"copilot_enabled_for_language":true}
{"signed_in":false,"milliseconds_since_first_event":247,"type":"Editor","operation":"open","file_extension":"svelte","vim_mode":false,"copilot_enabled":true,"copilot_enabled_for_language":true}
{"signed_in":false,"milliseconds_since_first_event":248,"type":"Editor","operation":"open","file_extension":"svelte","vim_mode":false,"copilot_enabled":true,"copilot_enabled_for_language":true}
{"signed_in":false,"milliseconds_since_first_event":248,"type":"Editor","operation":"open","file_extension":"svelte","vim_mode":false,"copilot_enabled":true,"copilot_enabled_for_language":true}
{"signed_in":false,"milliseconds_since_first_event":248,"type":"Editor","operation":"open","file_extension":"svelte","vim_mode":false,"copilot_enabled":true,"copilot_enabled_for_language":true}
{"signed_in":false,"milliseconds_since_first_event":248,"type":"Editor","operation":"open","file_extension":"svelte","vim_mode":false,"copilot_enabled":true,"copilot_enabled_for_language":true}
{"signed_in":false,"milliseconds_since_first_event":248,"type":"Editor","operation":"open","file_extension":"ts","vim_mode":false,"copilot_enabled":true,"copilot_enabled_for_language":true}
{"signed_in":false,"milliseconds_since_first_event":249,"type":"Editor","operation":"open","file_extension":"svelte","vim_mode":false,"copilot_enabled":true,"copilot_enabled_for_language":true}
{"signed_in":false,"milliseconds_since_first_event":249,"type":"Editor","operation":"open","file_extension":"svelte","vim_mode":false,"copilot_enabled":true,"copilot_enabled_for_language":true}
{"signed_in":false,"milliseconds_since_first_event":83476,"type":"Editor","operation":"save","file_extension":"svelte","vim_mode":false,"copilot_enabled":true,"copilot_enabled_for_language":true}
{"signed_in":false,"milliseconds_since_first_event":90852,"type":"Edit","duration":34993,"environment":"editor"}
{"signed_in":false,"milliseconds_since_first_event":105310,"type":"Assistant","conversation_id":null,"kind":"inline","model":"anthropic/claude-3-5-sonnet-20240620","response_latency":null,"error_message":"failed to stream completion"}
{"signed_in":false,"milliseconds_since_first_event":114982,"type":"Assistant","conversation_id":null,"kind":"inline","model":"anthropic/claude-3-5-sonnet-20240620","response_latency":null,"error_message":"failed to stream completion"}
{"signed_in":false,"milliseconds_since_first_event":130878,"type":"Assistant","conversation_id":null,"kind":"inline","model":"anthropic/claude-3-5-sonnet-20240620","response_latency":null,"error_message":"failed to stream completion"}
{"signed_in":false,"milliseconds_since_first_event":141158,"type":"Edit","duration":1,"environment":"terminal"}
{"signed_in":false,"milliseconds_since_first_event":165049,"type":"Edit","duration":459,"environment":"terminal"}
{"signed_in":false,"milliseconds_since_first_event":166512,"type":"Editor","operation":"save","file_extension":"svelte","vim_mode":false,"copilot_enabled":true,"copilot_enabled_for_language":true}
{"signed_in":false,"milliseconds_since_first_event":239438,"type":"Memory","memory_in_bytes":104824832,"virtual_memory_in_bytes":475876589568}
{"signed_in":false,"milliseconds_since_first_event":239438,"type":"Cpu","usage_as_percentage":0.0,"core_count":8}
{"signed_in":false,"milliseconds_since_first_event":263729,"type":"Assistant","conversation_id":null,"kind":"inline","model":"anthropic/claude-3-5-sonnet-20240620","response_latency":null,"error_message":"failed to stream completion"}
{"signed_in":false,"milliseconds_since_first_event":269890,"type":"Assistant","conversation_id":null,"kind":"inline","model":"anthropic/claude-3-5-sonnet-20240620","response_latency":null,"error_message":"failed to stream completion"}
{"signed_in":false,"milliseconds_since_first_event":0,"type":"Assistant","conversation_id":"","kind":"panel","model":"anthropic/claude-3-5-sonnet-20240620","response_latency":null,"error_message":"failed to stream completion"}
{"signed_in":false,"milliseconds_since_first_event":169933,"type":"Memory","memory_in_bytes":67321856,"virtual_memory_in_bytes":476535013376}
{"signed_in":false,"milliseconds_since_first_event":169933,"type":"Cpu","usage_as_percentage":7.4000044,"core_count":8}            
jaredwy commented 3 days ago

Hitting this same error.

syqwq-OMG commented 1 day ago

Hitting this same error.

lrrb commented 19 hours ago

Received the same error message, but apparently, it was an issue with my corporate proxy.