fix api key store error
This commit is contained in:
parent
4b8b097ce2
commit
18cb1e0efd
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user