FluidVoice icon indicating copy to clipboard operation
FluidVoice copied to clipboard

[🐞 BUG] Anthropic integration makes invalid requests

Open reidab opened this issue 10 months ago • 4 comments

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:

  1. Go to 'AI Enhancements'
  2. Click on 'Anthropic' and add an API key
  3. Click to refresh models
  4. See 401 error

Expected behavior Models refresh

Screenshots

Image

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 Authentication header as a bearer token, rather than in the required x-api-key header.
  • The required anthropic-version header is not set

Proxied request details: Image

reidab avatar Jan 30 '26 19:01 reidab

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

altic-dev avatar Jan 30 '26 19:01 altic-dev

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.

reidab avatar Jan 30 '26 22:01 reidab

it was just the auth header. fixed it! Thanks for letting me know :) coming up in 1.5.6!

altic-dev avatar Jan 31 '26 21:01 altic-dev

Image

altic-dev avatar Jan 31 '26 21:01 altic-dev