naveen07garg commited on
Commit
3340d60
·
verified ·
1 Parent(s): e8d2053

Update src/api.js

Browse files
Files changed (1) hide show
  1. src/api.js +9 -9
src/api.js CHANGED
@@ -1,9 +1,9 @@
1
- export async function sendMessageToBot(message, history = []) {
2
- const response = await fetch("https://your-hf-space-url/api/chat", {
3
- method: "POST",
4
- headers: { "Content-Type": "application/json" },
5
- body: JSON.stringify({ message, history })
6
- });
7
-
8
- return response.json(); // {answer: "...", citations: [...] }
9
- }
 
1
+ export async function sendMessageToBot(message, history = []) {
2
+ const response = await fetch("naveen07garg/FlylineChatBot", {
3
+ method: "POST",
4
+ headers: { "Content-Type": "application/json" },
5
+ body: JSON.stringify({ message, history })
6
+ });
7
+
8
+ return response.json(); // {answer: "...", citations: [...] }
9
+ }