mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-16 19:47:43 +01:00
fix: correct headers (#83)
This commit is contained in:
@@ -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 }),
|
||||
});
|
||||
|
||||
@@ -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 }),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user