Spaces:
Running
Running
Commit ·
dd2ba48
1
Parent(s): a685388
commit 006
Browse files- src/utils/streamChat.js +1 -1
src/utils/streamChat.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
export async function streamChat({ message, history = [], onChunk, onDone }) {
|
| 2 |
-
const res = await fetch("https://
|
| 3 |
method: "POST",
|
| 4 |
headers: { "Content-Type": "application/json" },
|
| 5 |
body: JSON.stringify({ message, history }),
|
|
|
|
| 1 |
export async function streamChat({ message, history = [], onChunk, onDone }) {
|
| 2 |
+
const res = await fetch("https://fredericksundeep-aichatmatedev.hf.space/chat-stream", {
|
| 3 |
method: "POST",
|
| 4 |
headers: { "Content-Type": "application/json" },
|
| 5 |
body: JSON.stringify({ message, history }),
|