fix: correct headers (#83)

This commit is contained in:
Medcl
2025-01-05 23:33:34 +08:00
committed by GitHub
parent 2c19112f92
commit 43c940207c
2 changed files with 2 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ const ChatAI = forwardRef<ChatAIRef, ChatAIProps>(
url: `/chat/${newChat?._id}/_send`,
method: "POST",
headers: {
WEBSOCKET-SESSION-ID: websocketId,
"WEBSOCKET-SESSION-ID": websocketId,
},
body: JSON.stringify({ message: content }),
});

View File

@@ -160,7 +160,7 @@ export default function ChatAI({}: ChatAIProps) {
url: `/chat/${activeChat?._id}/_send`,
method: "POST",
headers: {
WEBSOCKET-SESSION-ID: websocketId,
"WEBSOCKET-SESSION-ID": websocketId,
},
body: JSON.stringify({ message: content }),
});