Skip to content

Commit 39823bf

Browse files
committed
fix: include excludedModels and excludedProviders in key save payload and getKeys mapping
1 parent fb48508 commit 39823bf

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • packages/frontend/src/lib

packages/frontend/src/lib/api.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,6 +1588,8 @@ export const api = {
15881588
quota?: string;
15891589
allowedModels?: string[];
15901590
allowedProviders?: string[];
1591+
excludedModels?: string[];
1592+
excludedProviders?: string[];
15911593
}
15921594
>;
15931595

@@ -1598,6 +1600,8 @@ export const api = {
15981600
quota: val.quota,
15991601
allowedModels: val.allowedModels,
16001602
allowedProviders: val.allowedProviders,
1603+
excludedModels: val.excludedModels,
1604+
excludedProviders: val.excludedProviders,
16011605
}));
16021606
} catch (e) {
16031607
console.error('API Error getKeys', e);
@@ -1617,6 +1621,8 @@ export const api = {
16171621
...(keyConfig.quota ? { quota: keyConfig.quota } : {}),
16181622
allowedModels: keyConfig.allowedModels ?? [],
16191623
allowedProviders: keyConfig.allowedProviders ?? [],
1624+
excludedModels: keyConfig.excludedModels ?? [],
1625+
excludedProviders: keyConfig.excludedProviders ?? [],
16201626
}),
16211627
}
16221628
);

0 commit comments

Comments
 (0)