mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-06 17:23:42 +08:00
移除空格,增加custom_models 容错性
This commit is contained in:
@@ -76,6 +76,7 @@ export function collectModelTable(
|
|||||||
// server custom models
|
// server custom models
|
||||||
customModels
|
customModels
|
||||||
.split(",")
|
.split(",")
|
||||||
|
.map((v) => v.trim())
|
||||||
.filter((v) => !!v && v.length > 0)
|
.filter((v) => !!v && v.length > 0)
|
||||||
.forEach((m) => {
|
.forEach((m) => {
|
||||||
const available = !m.startsWith("-");
|
const available = !m.startsWith("-");
|
||||||
|
|||||||
Reference in New Issue
Block a user