AxL95 commited on
Commit
ccd80eb
·
verified ·
1 Parent(s): 43b0f3c

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('http://localhost:7860/api/chat', {
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',