ciyidogan commited on
Commit
3617e72
·
verified ·
1 Parent(s): 650485d

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.baseUrl}/startchat`, {});
304
  }
305
 
306
  chat(sessionId: string, text: string) {
307
- return this.http.post<any>(`${this.baseUrl}/chat`, {
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
  });