Skip to content

Commit

Permalink
fix model list
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jan 9, 2025
1 parent 79ade8f commit aa6186b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/database/repositories/aiInfra/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ export class AiInfraRepos {
): Promise<AiProviderModelListItem[] | undefined> => {
try {
const { default: providerModels } = await import(`@/config/aiModels/${providerId}`);
return (providerModels as AIChatModelCard[]).map<AiProviderModelListItem>((m) => ({

const presetList = this.providerConfigs[providerId]?.serverModelLists || providerModels;
return (presetList as AIChatModelCard[]).map<AiProviderModelListItem>((m) => ({
...m,
enabled: m.enabled || false,
source: AiModelSourceEnum.Builtin,
Expand Down

0 comments on commit aa6186b

Please sign in to comment.