Spaces:
Sleeping
Sleeping
Update src/api.js
Browse files- src/api.js +3 -1
src/api.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
// src/api.js
|
| 2 |
|
| 3 |
// Change this if you put a proxy / gateway in front of the backend
|
| 4 |
-
export const API_BASE = "https://deepthoughtai-prolog-backend.hf.space";
|
|
|
|
|
|
|
| 5 |
|
| 6 |
export async function sendChat(message, strictMode = true, history = []) {
|
| 7 |
const res = await fetch(`${API_BASE}/chat`, {
|
|
|
|
| 1 |
// src/api.js
|
| 2 |
|
| 3 |
// Change this if you put a proxy / gateway in front of the backend
|
| 4 |
+
// export const API_BASE = "https://deepthoughtai-prolog-backend.hf.space";
|
| 5 |
+
export const API_BASE = "https://deepthoughtai-prolog-gateway.hf.space/prolog/query";
|
| 6 |
+
|
| 7 |
|
| 8 |
export async function sendChat(message, strictMode = true, history = []) {
|
| 9 |
const res = await fetch(`${API_BASE}/chat`, {
|