mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 20:20:16 +09:00
Compatibility changes
This commit is contained in:
parent
2fd68bcac3
commit
aa4e855012
@ -98,9 +98,11 @@ export function collectModelTableWithDefaultModel(
|
||||
defaultModel: string,
|
||||
) {
|
||||
let modelTable = collectModelTable(models, customModels);
|
||||
if (defaultModel && defaultModel !== "" && defaultModel in modelTable) {
|
||||
if (defaultModel && defaultModel !== "") {
|
||||
modelTable[defaultModel] = {
|
||||
...modelTable[defaultModel],
|
||||
name: modelTable[defaultModel]?.name ?? defaultModel,
|
||||
displayName: modelTable[defaultModel]?.displayName ?? defaultModel,
|
||||
available: true,
|
||||
isDefault: true,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user