fix api key store error

This commit is contained in:
sanio 2025-07-08 21:57:23 +09:00
parent 4b8b097ce2
commit 18cb1e0efd

View File

@ -67,6 +67,11 @@ class ModelStateService {
}; };
this.state = this.store.get(`users.${userId}`, defaultState); this.state = this.store.get(`users.${userId}`, defaultState);
console.log(`[ModelStateService] State loaded for user: ${userId}`); console.log(`[ModelStateService] State loaded for user: ${userId}`);
for (const p of Object.keys(PROVIDERS)) {
if (!(p in this.state.apiKeys)) {
this.state.apiKeys[p] = null;
}
}
this._autoSelectAvailableModels(); this._autoSelectAvailableModels();
this._saveState(); this._saveState();
this._logCurrentSelection(); this._logCurrentSelection();