Skip to content

Anthropic/Claude now has a OpenAI compatible API #511

Description

@maliayas

See: https://docs.anthropic.com/en/api/openai-sdk

But the problem is, it requires a special HTTP header to be sent, to prevent CORS error: "401 CORS requests must set 'anthropic-dangerous-direct-browser-access' header"

I guess a HTTP header must be sent to prevent that: anthropic-dangerous-direct-browser-access: true.

Can I do it on my own or a code change is needed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions