Yifei Zhang 2 năm trước cách đây
mục cha
commit
76ef5ef9a9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/api/common.ts

+ 1 - 1
app/api/common.ts

@@ -25,6 +25,6 @@ export async function requestOpenai(req: NextRequest) {
     },
     method: req.method,
     body: req.body,
-    duplex: !!req.body,
+    duplex: !!req.body ? "half" : "",
   });
 }