mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 17:44:57 +08:00
hotfix
This commit is contained in:
@@ -118,7 +118,12 @@ export function collectModelsWithDefaultModel(
|
||||
return allModels;
|
||||
}
|
||||
|
||||
export function isModelAvailableInServer(customModels, modelName) {
|
||||
export function isModelAvailableInServer(
|
||||
customModels,
|
||||
modelName,
|
||||
providerName,
|
||||
) {
|
||||
const fullName = `${modelName}@${providerName}`;
|
||||
const modelTable = collectModelTable(DEFAULT_MODELS, customModels);
|
||||
return modelTable[modelName ?? ""].available === false;
|
||||
return modelTable[fullName]?.available === false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user