Skip to content

feat: support per-request API-key providers - #26

Merged
nkavian merged 1 commit into
mainfrom
feat/api-key-providers
Oct 10, 2026
Merged

nkavian merged 1 commit into
mainfrom
feat/api-key-providers

Conversation

@nkavian

@nkavian nkavian commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Add ClientOptions.api_key_provider to resolve an API key asynchronously for each HTTP attempt, including retries. Results are not cached, and provider failures stop the request without retrying. Existing client modes remain supported.

Includes usage documentation and tests for HTTP retries, concurrent requests, cancellation, provider failures, and seller factories.

Validation

Passed make sync and make verify, including Ruff formatting and lint, strict type checking, the full test suite, per-file coverage checks, and built-distribution consumer tests.

No release is performed by this PR.

@nkavian
nkavian merged commit 050da8a into main Oct 10, 2026
12 checks passed
@nkavian
nkavian deleted the feat/api-key-providers branch October 10, 2026 00:19
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