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.19k stars 2.72k forks source link

Claude Sonnet recommended model endpoint should be changed #13908

Open ethanjperez opened 2 months ago

ethanjperez commented 2 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

When setting up the Zed Preview release to work with Claude 3.5 Sonnet (per instructions here), there's an issue where using the listed endpoint "claude-3-5-sonnet" causes Zed to ask for an OpenAI API key, instead of asking for an Anthropic API key.

I believe this can be easily fixed by replacing "claude-3-5-sonnet" with "claude-3-5-sonnet-20240620" as the "default_model" in this line -- basically, it seems like the latter endpoint doesn't have this issue, and causes Zed to properly ask for an Anthropic API key. (There might be a better fix, though this seems fine enough for now / for a quick fix).

Environment

I ran onto this issue on another person's laptop (not mine), but it should be close (if not identical) to mine:

Zed: v0.143.0 (Zed Preview)
OS: macOS 14.5.0
Memory: 32 GiB
Architecture: aarch64

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

No response

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

Zed.log


atomkirk commented 2 months ago

I already get a warning. so maybe this issue is fixed? Though the docs should be updated

CleanShot 2024-07-13 at 07 07 01@2x