Update frontend/src/components/ChatInterface.jsx
Browse files
frontend/src/components/ChatInterface.jsx
CHANGED
|
@@ -78,7 +78,7 @@ saveBotResponse, toLogin, onCreateNewConversation = () => {},onNewChat = () => {
|
|
| 78 |
|
| 79 |
const updatedConversationId = await onMessageSent(message);
|
| 80 |
|
| 81 |
-
const chatRes = await fetch('
|
| 82 |
method: 'POST',
|
| 83 |
headers: { 'Content-Type': 'application/json' },
|
| 84 |
credentials: 'include',
|
|
|
|
| 78 |
|
| 79 |
const updatedConversationId = await onMessageSent(message);
|
| 80 |
|
| 81 |
+
const chatRes = await fetch('/api/chat', {
|
| 82 |
method: 'POST',
|
| 83 |
headers: { 'Content-Type': 'application/json' },
|
| 84 |
credentials: 'include',
|