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

Incompatibility with Anthropics’ New Messages API #35

Open
MJE43 opened this issue May 12, 2024 · 0 comments
Open

Incompatibility with Anthropics’ New Messages API #35

MJE43 opened this issue May 12, 2024 · 0 comments

Comments

@MJE43
Copy link

MJE43 commented May 12, 2024

Hey! So, I'm having some issues when trying to use the Claude3 models with PromptLab, it's not playing nice with the latest version of Anthropics' 'messages' API. The problem is that the new API needs an extra header, "anthropic-version", in the request. Since the extension settings doesn't include a space to specify additional headers, I can't make successful API calls.

Here's an example of what the request should look like:

curl https://api.anthropic.com/v1/messages
--header "x-api-key: $ANTHROPIC_API_KEY"
--header "anthropic-version: 2023-06-01"
--header "content-type: application/json"
--data
'{
"model": "claude-3-opus-20240229",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "Hello, world"}
]
}'

Could you please help update the extension to include this new header? Thanks a bunch in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant