ciyidogan commited on
Commit
11d88bf
·
verified ·
1 Parent(s): 107dff1

Update flare-ui/src/app/services/api.service.ts

Browse files
flare-ui/src/app/services/api.service.ts CHANGED
@@ -301,7 +301,7 @@ export class ApiService {
301
  // ===================== Chat =====================
302
  /* 1️⃣ Proje isimleri (combo’yu doldurmak için) */
303
  getChatProjects() {
304
- return this.http.get<string[]>(`${this.baseUrl}/projects/names`);
305
  }
306
 
307
  /* 2️⃣ Oturum başlat */
@@ -309,7 +309,7 @@ export class ApiService {
309
  return this.http.post<{
310
  session_id: string;
311
  answer: string;
312
- }>(`${this.baseUrl}/start_session`, { project_name: projectName });
313
  }
314
 
315
  /* 3️⃣ Mesaj gönder/al */
@@ -319,7 +319,7 @@ export class ApiService {
319
  session_id: string;
320
  answer: string;
321
  }>(
322
- `${this.baseUrl}/chat`,
323
  { user_input: text },
324
  { headers }
325
  );
 
301
  // ===================== Chat =====================
302
  /* 1️⃣ Proje isimleri (combo’yu doldurmak için) */
303
  getChatProjects() {
304
+ return this.http.get<string[]>(`${this.apiUrl}/projects/names`);
305
  }
306
 
307
  /* 2️⃣ Oturum başlat */
 
309
  return this.http.post<{
310
  session_id: string;
311
  answer: string;
312
+ }>(`${this.apiUrl}/start_session`, { project_name: projectName });
313
  }
314
 
315
  /* 3️⃣ Mesaj gönder/al */
 
319
  session_id: string;
320
  answer: string;
321
  }>(
322
+ `${this.apiUrl}/chat`,
323
  { user_input: text },
324
  { headers }
325
  );