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.71k stars 2.79k forks source link

Claude 3 Opus `unknown variant error` error #10087

Open JosephTLyons opened 6 months ago

JosephTLyons commented 6 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Testing out Claude 3 Opus. Ran a test request and the response died midstream with an error:

RPC request `CompleteWithLanguageModel failed - unknown variant `error`, expected one of ....

As a side note, we should wrap the text in the error popover and maybe style the same way we style our code error popovers:

SCR-20240402-lvkb

The x decorator in the assistant should also probably match the styling of the one in the status bar when there are diagnostic errors:

SCR-20240402-lvzk SCR-20240402-lwbd

@maxdeviant?

Environment

Zed: v0.130.0 (Zed Nightly) OS: macOS 14.3.1 Memory: 64 GiB Architecture: aarch64

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

SCR-20240402-ltfs

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

stjepangolemac commented 5 months ago

Any updates on Claude support?