mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-13 12:43:42 +08:00
feat: add env
This commit is contained in:
@@ -108,7 +108,7 @@ export async function requestOpenai(req: NextRequest) {
|
||||
fetchOptions.body = clonedBody;
|
||||
|
||||
// not undefined and is false
|
||||
if (modelTable[jsonBody?.model ?? ""].available === false) {
|
||||
if (modelTable[jsonBody?.model ?? ""]?.available === false) {
|
||||
return NextResponse.json(
|
||||
{
|
||||
error: true,
|
||||
|
||||
Reference in New Issue
Block a user