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