Skip to content

Conversation

@qihonggang
Copy link

Filter out Anthropic-specific headers like x-anthropic-billing-header and x-anthropic-billing from system prompts before sending to Copilot API.

These keywords are internal to Anthropic's billing system and should not be forwarded to the Copilot backend, as they may cause unexpected behavior or errors.

Fixes #174

Filter out Anthropic-specific headers like `x-anthropic-billing-header`
and `x-anthropic-billing` from system prompts before sending to Copilot API.

These keywords are internal to Anthropic's billing system and should not
be forwarded to the Copilot backend, as they may cause unexpected behavior
or errors.

Fixes ericc-ch#174
@cuipengfei
Copy link
Contributor

Hi @qihonggang I had same issue, then i went back to stable version of cc, 2.1.7

using which version did you get this problem?

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

Successfully merging this pull request may close these issues.

API Error: 400 x-anthropic-billing-header is a reserved keyword and may not be used in the system prompt

2 participants