mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 03:11:47 +08:00
feat: add stream support
This commit is contained in:
@@ -2,8 +2,7 @@ import { OpenAIApi, Configuration } from "openai";
|
||||
import { ChatRequest } from "./typing";
|
||||
|
||||
const isProd = process.env.NODE_ENV === "production";
|
||||
|
||||
let apiKey = process.env.OPENAI_API_KEY;
|
||||
const apiKey = process.env.OPENAI_API_KEY;
|
||||
|
||||
const openai = new OpenAIApi(
|
||||
new Configuration({
|
||||
|
Reference in New Issue
Block a user