Spaces:
Building
Building
Update flare-ui/src/app/services/api.service.ts
Browse files
flare-ui/src/app/services/api.service.ts
CHANGED
@@ -543,12 +543,13 @@ export class ApiService {
|
|
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 |
}
|
|
|
543 |
}
|
544 |
|
545 |
/* 2️⃣ Oturum başlat */
|
546 |
+
startChat(projectName: string, isRealtime: boolean, locale?: string) {
|
547 |
return this.http.post<{
|
548 |
session_id: string;
|
549 |
answer: string;
|
550 |
}>(`${this.apiUrl}/start_session`, {
|
551 |
project_name: projectName,
|
552 |
+
is_realtime: isRealtime,
|
553 |
locale: locale || 'tr'
|
554 |
});
|
555 |
}
|