Spaces:
Running
Running
Update src/api.js
Browse files- 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("
|
| 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 |
+
}
|