[🐞 BUG] Anthropic integration makes invalid requests
Describe the bug
When attempting to set up the Anthropic provider using an API key, I get 401 errors due to incorrectly structured requests.
To Reproduce Steps to reproduce the behavior:
- Go to 'AI Enhancements'
- Click on 'Anthropic' and add an API key
- Click to refresh models
- See 401 error
Expected behavior Models refresh
Screenshots
Environment:
- macOS Version: 26.1
- App Version: 1.5.5
- Architecture: Apple Silicon
Additional context
The requests that are being made don't include the correct headers, per https://platform.claude.com/docs/en/api/overview#authentication
- The provided API key is being sent in an
Authenticationheader as a bearer token, rather than in the requiredx-api-keyheader. - The required
anthropic-versionheader is not set
Proxied request details:
So it should be openai compatible api and not the claude api protocol. It should be work just like others but i'll take a look as well. I dont use claude models unfortunately
It may just be the /models endpoint that requires using this pattern for setup. I think the OpenAI compatibility only extends to the messages endpoint and not the supporting stuff.
it was just the auth header. fixed it! Thanks for letting me know :) coming up in 1.5.6!