mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 11:03:49 +08:00
hotfix
This commit is contained in:
@@ -142,7 +142,9 @@ async function request(req: NextRequest) {
|
||||
const jsonBody = JSON.parse(clonedBody) as { model?: string };
|
||||
|
||||
// not undefined and is false
|
||||
if (isModelAvailableInServer(jsonBody?.model ?? "")) {
|
||||
if (
|
||||
isModelAvailableInServer(serverConfig.customModels, jsonBody?.model)
|
||||
) {
|
||||
return NextResponse.json(
|
||||
{
|
||||
error: true,
|
||||
|
Reference in New Issue
Block a user