refactor: merge /api/chat-stream to /api/openai

This commit is contained in:
Yidadaa
2023-05-03 17:07:09 +08:00
parent e0053d57f7
commit ef5b7ce853
4 changed files with 74 additions and 78 deletions

View File

@@ -161,7 +161,7 @@ export async function requestChatStream(
const reqTimeoutId = setTimeout(() => controller.abort(), TIME_OUT_MS);
try {
const res = await fetch("/api/chat-stream", {
const res = await fetch("/api/openai", {
method: "POST",
headers: {
"Content-Type": "application/json",