ciyidogan commited on
Commit
a7eaf45
·
verified ·
1 Parent(s): 8715c46

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

Browse files
flare-ui/src/app/services/api.service.ts CHANGED
@@ -543,11 +543,14 @@ export class ApiService {
543
  }
544
 
545
  /* 2️⃣ Oturum başlat */
546
- startChat(projectName: string) {
547
  return this.http.post<{
548
  session_id: string;
549
  answer: string;
550
- }>(`${this.apiUrl}/start_session`, { project_name: projectName });
 
 
 
551
  }
552
 
553
  /* 3️⃣ Mesaj gönder/al */
 
543
  }
544
 
545
  /* 2️⃣ Oturum başlat */
546
+ startChat(projectName: string, locale?: string) {
547
  return this.http.post<{
548
  session_id: string;
549
  answer: string;
550
+ }>(`${this.apiUrl}/start_session`, {
551
+ project_name: projectName,
552
+ locale: locale || 'tr'
553
+ });
554
  }
555
 
556
  /* 3️⃣ Mesaj gönder/al */