Spaces:
Building
Building
Update flare-ui/src/app/components/main/main.component.ts
Browse files
flare-ui/src/app/components/main/main.component.ts
CHANGED
@@ -251,7 +251,8 @@ export class MainComponent implements OnInit, OnDestroy {
|
|
251 |
.pipe(takeUntil(this.destroyed$))
|
252 |
.subscribe(env => {
|
253 |
if (env) {
|
254 |
-
|
|
|
255 |
this.updateProviderInfo(env);
|
256 |
}
|
257 |
});
|
@@ -281,9 +282,12 @@ export class MainComponent implements OnInit, OnDestroy {
|
|
281 |
}
|
282 |
|
283 |
updateProviderInfo(env: any) {
|
284 |
-
// Update TTS/STT availability
|
285 |
this.environmentService.setTTSEnabled(!!env.tts_provider?.name && env.tts_provider.name !== 'no_tts');
|
286 |
this.environmentService.setSTTEnabled(!!env.stt_provider?.name && env.stt_provider.name !== 'no_stt');
|
|
|
|
|
|
|
287 |
}
|
288 |
|
289 |
logout() {
|
|
|
251 |
.pipe(takeUntil(this.destroyed$))
|
252 |
.subscribe(env => {
|
253 |
if (env) {
|
254 |
+
// work_mode yerine llm_provider.name kullan
|
255 |
+
this.isGPTMode = env.llm_provider?.name?.startsWith('gpt4o') || false;
|
256 |
this.updateProviderInfo(env);
|
257 |
}
|
258 |
});
|
|
|
282 |
}
|
283 |
|
284 |
updateProviderInfo(env: any) {
|
285 |
+
// Update TTS/STT availability - zaten doğru
|
286 |
this.environmentService.setTTSEnabled(!!env.tts_provider?.name && env.tts_provider.name !== 'no_tts');
|
287 |
this.environmentService.setSTTEnabled(!!env.stt_provider?.name && env.stt_provider.name !== 'no_stt');
|
288 |
+
|
289 |
+
// GPT mode'u da burada güncelleyebiliriz
|
290 |
+
this.isGPTMode = env.llm_provider?.name?.startsWith('gpt4o') || false;
|
291 |
}
|
292 |
|
293 |
logout() {
|