mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-06 08:18:58 +00:00
The "Anthropic uses x-api-key header, everyone else uses Bearer" logic was written three times: env_source (env-based construction), resolve (vault-based construction), and provider_auth (CLI key validation). Any future header rename would need three edits. Add ApiCredential::from_api_key(provider, key) as a canonical constructor. Each callsite now builds via the helper and overrides only the fields specific to its path (env base URLs, vault-sourced org/project IDs, codex mode, etc.). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| tests/it | ||
| build.rs | ||
| Cargo.toml | ||