[AI] new model tab design (#19384)

closes
https://discord.com/channels/1130383047699738754/1480979892610007121

<img width="1839" height="1316" alt="CleanShot 2026-04-07 at 15 22 38"
src="https://github.com/user-attachments/assets/d8f6048c-4e0f-425f-b7ea-4913d116020e"
/>
This commit is contained in:
nitin
2026-04-09 19:45:43 +05:30
committed by GitHub
parent 74e26ae635
commit 50c5a1a8de
37 changed files with 873 additions and 570 deletions
@@ -228,6 +228,17 @@ export class AdminPanelResolver {
return true;
}
@UseGuards(AdminPanelGuard)
@Mutation(() => Boolean)
async setAdminAiModelsEnabled(
@Args('modelIds', { type: () => [String] }) modelIds: string[],
@Args('enabled', { type: () => Boolean }) enabled: boolean,
): Promise<boolean> {
await this.aiModelRegistryService.setModelsAdminEnabled(modelIds, enabled);
return true;
}
@UseGuards(AdminPanelGuard)
@Mutation(() => Boolean)
async setAdminAiModelRecommended(
@@ -239,6 +250,20 @@ export class AdminPanelResolver {
return true;
}
@UseGuards(AdminPanelGuard)
@Mutation(() => Boolean)
async setAdminAiModelsRecommended(
@Args('modelIds', { type: () => [String] }) modelIds: string[],
@Args('recommended', { type: () => Boolean }) recommended: boolean,
): Promise<boolean> {
await this.aiModelRegistryService.setModelsRecommended(
modelIds,
recommended,
);
return true;
}
@UseGuards(AdminPanelGuard)
@Mutation(() => Boolean)
async setAdminDefaultAiModel(