Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anthropic Claude Sonnet 3.7 Support #25488

Closed
notpeter opened this issue Feb 24, 2025 · 7 comments · Fixed by #25497
Closed

Anthropic Claude Sonnet 3.7 Support #25488

notpeter opened this issue Feb 24, 2025 · 7 comments · Fixed by #25497
Assignees
Labels
ai Improvement related to Assistant, Copilot, or other AI features

Comments

@notpeter
Copy link
Member

Support for new Anthropic Claude 3.7 release in the Assistant panel.

@notpeter notpeter added the ai Improvement related to Assistant, Copilot, or other AI features label Feb 24, 2025
@notpeter notpeter self-assigned this Feb 24, 2025
@ThomAub
Copy link
Contributor

ThomAub commented Feb 24, 2025

@notpeter do you think the thinking budget can be set from a slash command or from the message in the assistant ?
Happy to help in any way !

@lougreenwood

This comment has been minimized.

@notpeter
Copy link
Member Author

Initial support will be for using it in the assistant.
Subsequent work can be around additional features (budget, etc).

@notpeter
Copy link
Member Author

An update: PR #25497 is ready to go with this.
Hotfix releases for stable/preview will likely go out later today which include this.

There is a minor upstream Anthropic issue, specifically API responses from claude3.7 are missing three response headers (anthropic-ratelimit-requests-*). This results in Zed complaining with errors in the Zed.log on every request:

2025-02-24T15:48:33.50199-05:00 [ERROR] missing header `anthropic-ratelimit-requests-limit`
2025-02-24T15:48:33.922569-05:00 [ERROR] Other(Failed to log: 400 Bad Request)

It appears to be harmless and I expect Anthropic will fix this server-side shortly.

In the meantime if you can't wait for the hotfix releases you can add this to your settings and use Claude 3.7 right now:

  "language_models": {
    "anthropic": {
      "version": "1",
      "available_models": [
        {
          "name": "claude-3-7-sonnet-latest",
          "max_tokens": 200000,
          "display_name": "Claude 3.7 Early Bird"
        }
      ]
    }
  },

@notpeter
Copy link
Member Author

This shipped last night in Zed Preview v0.175.4-pre and Zed Stable v0.174.7.

Anthropic fixed the upstream issue and is now including the expected headers.
Image

notpeter added a commit that referenced this issue Feb 25, 2025
- Follow-up to: #25488

Co-authored-by: Peter Tripp <peter@zed.dev>
notpeter added a commit that referenced this issue Feb 25, 2025
- Follow-up to: #25488

Co-authored-by: Peter Tripp <peter@zed.dev>
notpeter added a commit that referenced this issue Feb 25, 2025
- Follow-up to: #25488

Co-authored-by: Peter Tripp <peter@zed.dev>
@bernaferrari
Copy link

Zed is missing Claude 3.7 thinking

@notpeter
Copy link
Member Author

Zed is missing Claude 3.7 thinking

Thanks. I've opened an issue for that here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai Improvement related to Assistant, Copilot, or other AI features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants