mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-25 07:00:23 +09:00
fixbug
This commit is contained in:
parent
da9963d4ee
commit
ecc65fa775
@ -121,12 +121,14 @@ export function collectModelTable(
|
|||||||
if (displayName && provider.providerName == "ByteDance") {
|
if (displayName && provider.providerName == "ByteDance") {
|
||||||
[customModelName, displayName] = [displayName, customModelName];
|
[customModelName, displayName] = [displayName, customModelName];
|
||||||
}
|
}
|
||||||
modelTable[`${customModelName}@${provider?.id}`] = {
|
modelTable[`${customModelName}@${provider?.providerType}`] = {
|
||||||
name: customModelName,
|
name: customModelName,
|
||||||
displayName: displayName || customModelName,
|
displayName: displayName || customModelName,
|
||||||
available,
|
available,
|
||||||
provider, // Use optional chaining
|
provider, // Use optional chaining
|
||||||
sorted: CustomSeq.next(`${customModelName}@${provider?.providerType}`),
|
sorted: CustomSeq.next(
|
||||||
|
`${customModelName}@${provider?.providerType}`,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user