Add removeRuntimeApiKey to AuthStorage

This commit is contained in:
Mario Zechner 2025-12-25 03:57:20 +01:00
parent b5b2ed65d4
commit 1059d39d54
11 changed files with 50 additions and 40 deletions

View file

@ -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.