Spaces:
Running
Running
Update flare-ui/src/app/services/api.service.ts
Browse files
flare-ui/src/app/services/api.service.ts
CHANGED
@@ -300,11 +300,11 @@ export class ApiService {
|
|
300 |
|
301 |
// ===================== Chat =====================
|
302 |
startChat() {
|
303 |
-
return this.http.post<any>(`${this.
|
304 |
}
|
305 |
|
306 |
chat(sessionId: string, text: string) {
|
307 |
-
return this.http.post<any>(`${this.
|
308 |
session_id: sessionId,
|
309 |
text
|
310 |
});
|
|
|
300 |
|
301 |
// ===================== Chat =====================
|
302 |
startChat() {
|
303 |
+
return this.http.post<any>(`${this.apiUrl}/startchat`, {});
|
304 |
}
|
305 |
|
306 |
chat(sessionId: string, text: string) {
|
307 |
+
return this.http.post<any>(`${this.apiUrl}/chat`, {
|
308 |
session_id: sessionId,
|
309 |
text
|
310 |
});
|