mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 23:01:56 +00:00
Add removeRuntimeApiKey to AuthStorage
This commit is contained in:
parent
b5b2ed65d4
commit
1059d39d54
11 changed files with 50 additions and 40 deletions
|
|
@ -49,6 +49,13 @@ export class AuthStorage {
|
|||
this.runtimeOverrides.set(provider, apiKey);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove a runtime API key override.
|
||||
*/
|
||||
removeRuntimeApiKey(provider: string): void {
|
||||
this.runtimeOverrides.delete(provider);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a fallback resolver for API keys not found in auth.json or env vars.
|
||||
* Used for custom provider keys from models.json.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue