mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-19 05:02:41 +00:00
chore: bump coding-agent to 0.7.14 - fix Anthropic OAuth and Mistral API compatibility
This commit is contained in:
parent
a5ed6ab641
commit
063b7e0f11
9 changed files with 303 additions and 7 deletions
|
|
@ -226,6 +226,14 @@ export function getApiKeyForModel(model: Model<Api>): string | undefined {
|
|||
return resolveApiKey(customKeyConfig);
|
||||
}
|
||||
|
||||
// For Anthropic, check ANTHROPIC_OAUTH_KEY first
|
||||
if (model.provider === "anthropic") {
|
||||
const oauthKey = process.env.ANTHROPIC_OAUTH_TOKEN;
|
||||
if (oauthKey) {
|
||||
return oauthKey;
|
||||
}
|
||||
}
|
||||
|
||||
// For built-in providers, use getApiKey from @mariozechner/pi-ai
|
||||
return getApiKey(model.provider as KnownProvider);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue