Update frontend/src/components/ChatInterface.jsx
Browse files
frontend/src/components/ChatInterface.jsx
CHANGED
|
@@ -105,7 +105,7 @@ const ChatInterface = ({
|
|
| 105 |
setIsStreaming(true); // Commencer le streaming
|
| 106 |
|
| 107 |
// Faire la requête au backend
|
| 108 |
-
const response = await fetch('
|
| 109 |
method: 'POST',
|
| 110 |
headers: { 'Content-Type': 'application/json' },
|
| 111 |
credentials: 'include',
|
|
|
|
| 105 |
setIsStreaming(true); // Commencer le streaming
|
| 106 |
|
| 107 |
// Faire la requête au backend
|
| 108 |
+
const response = await fetch('/api/chat', {
|
| 109 |
method: 'POST',
|
| 110 |
headers: { 'Content-Type': 'application/json' },
|
| 111 |
credentials: 'include',
|