Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复自定义模型与预设模型名重复时,无法正确将自定义模型认定为openai渠道的bug #4748

Closed
wants to merge 11 commits into from
Closed
4 changes: 2 additions & 2 deletions app/utils/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { LLMModel } from "../client/api";

const customProvider = (modelName: string) => ({
id: modelName,
providerName: "",
providerName: "*OpenAI",
providerType: "custom",
});

Expand Down Expand Up @@ -49,7 +49,7 @@ export function collectModelTable(
name,
displayName: displayName || name,
available,
provider: modelTable[name]?.provider ?? customProvider(name), // Use optional chaining
provider: customProvider(name), // Use optional chaining
};
}
});
Expand Down
Loading