This commit is contained in:
GH Action - Upstream Sync
2023-11-12 00:58:29 +00:00
10 changed files with 105 additions and 39 deletions

View File

@@ -81,7 +81,7 @@ export async function requestOpenai(req: NextRequest) {
const jsonBody = JSON.parse(clonedBody) as { model?: string };
// not undefined and is false
if (modelTable[jsonBody?.model ?? ""] === false) {
if (modelTable[jsonBody?.model ?? ""].available === false) {
return NextResponse.json(
{
error: true,