This commit is contained in:
code-october 2025-03-20 19:33:56 -07:00 committed by GitHub
commit 6dae16d82e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -203,7 +203,10 @@ export const useAppConfig = createPersistStore(
const models = currentState.models.slice();
state.models.forEach((pModel) => {
const idx = models.findIndex(
(v) => v.name === pModel.name && v.provider === pModel.provider,
(v) => v.name === pModel.name
&& v.provider.id === pModel.provider.id
&& v.provider.providerName === pModel.provider.providerName
&& v.provider.providerType === pModel.provider.providerType,
);
if (idx !== -1) models[idx] = pModel;
else models.push(pModel);