Skip to content

feat(api): update docs for claude-2#62

Merged
stainless-bot merged 1 commit into
nextfrom
feat-api-update-docs-for-claude-
Jul 11, 2023
Merged

feat(api): update docs for claude-2#62
stainless-bot merged 1 commit into
nextfrom
feat-api-update-docs-for-claude-

Conversation

@stainless-bot

Copy link
Copy Markdown
Collaborator

No description provided.

@stainless-bot stainless-bot merged commit 6b656a6 into next Jul 11, 2023
@stainless-bot stainless-bot deleted the feat-api-update-docs-for-claude- branch July 11, 2023 13:19
stainless-app Bot pushed a commit that referenced this pull request Jun 7, 2026
The Foundry endpoint authenticates API-key requests with the x-api-key
header. Previously this worked by accident: the base client emitted
X-Api-Key from auth_headers. When auth_headers was emptied to stop a
stray ANTHROPIC_API_KEY environment variable from leaking to the
Foundry endpoint, API-key requests were left with only the api-key
header, which the endpoint rejects with a 401.

Attach x-api-key (alongside api-key, kept for backwards compatibility)
in _prepare_options. This branch only runs when no Azure AD token
provider is configured, so the key is always the explicitly provided
Foundry key, never an environment ANTHROPIC_API_KEY — the leak fix
still holds.

Fixes #1661
@stainless-app stainless-app Bot mentioned this pull request Jun 7, 2026
stainless-app Bot pushed a commit that referenced this pull request Jun 7, 2026
The Foundry endpoint authenticates API-key requests with the x-api-key
header. Previously this worked by accident: the base client emitted
X-Api-Key from auth_headers. When auth_headers was emptied to stop a
stray ANTHROPIC_API_KEY environment variable from leaking to the
Foundry endpoint, API-key requests were left with only the api-key
header, which the endpoint rejects with a 401.

Attach x-api-key (alongside api-key, kept for backwards compatibility)
in _prepare_options. This branch only runs when no Azure AD token
provider is configured, so the key is always the explicitly provided
Foundry key, never an environment ANTHROPIC_API_KEY — the leak fix
still holds.

Fixes #1661
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.

1 participant