Please and Thank You…
We have it working using a Web Location connector + Web Request action with the following headers:
- x-api-key:
- anthropic-version: 2023-06-01
- Content-Type: application/json
We also tried the OpenAI Compatible connector since Anthropic has an OpenAI-compatible mode, but ran into an authentication issue. The OpenAI Compatible connector sends the API key as 'Authorization: Bearer', whereas Claude requires it as a custom header 'x-api-key'. We tested several base URL variations (https://api.anthropic.com, /v1, /v1/messages, /v1/chat/completions) but none resolved the Bearer token issue.
Two questions:
- Has anyone found a way to make the OpenAI Compatible connector work with Claude's API, avoiding the plain text API key in the Web Location headers?
- If you are using the Web Location connector approach, how are you securing the API key so it is not stored in plain text?
Thank You