Spaces:
Building
Building
Update flare-ui/src/app/components/environment/environment.component.ts
Browse files
flare-ui/src/app/components/environment/environment.component.ts
CHANGED
@@ -125,28 +125,6 @@ export class EnvironmentComponent implements OnInit {
|
|
125 |
this.loadEnvironment();
|
126 |
}
|
127 |
|
128 |
-
private ttsEnabledSource = new BehaviorSubject<boolean>(false);
|
129 |
-
private sttEnabledSource = new BehaviorSubject<boolean>(false);
|
130 |
-
|
131 |
-
ttsEnabled$ = this.ttsEnabledSource.asObservable();
|
132 |
-
sttEnabled$ = this.sttEnabledSource.asObservable();
|
133 |
-
|
134 |
-
setTTSEnabled(enabled: boolean): void {
|
135 |
-
this.ttsEnabledSource.next(enabled);
|
136 |
-
}
|
137 |
-
|
138 |
-
setSTTEnabled(enabled: boolean): void {
|
139 |
-
this.sttEnabledSource.next(enabled);
|
140 |
-
}
|
141 |
-
|
142 |
-
isTTSEnabled(): boolean {
|
143 |
-
return this.ttsEnabledSource.value;
|
144 |
-
}
|
145 |
-
|
146 |
-
isSTTEnabled(): boolean {
|
147 |
-
return this.sttEnabledSource.value;
|
148 |
-
}
|
149 |
-
|
150 |
// Safe getters for template
|
151 |
get currentLLMProviderSafe(): ProviderConfig | null {
|
152 |
return this.currentLLMProvider || null;
|
|
|
125 |
this.loadEnvironment();
|
126 |
}
|
127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
// Safe getters for template
|
129 |
get currentLLMProviderSafe(): ProviderConfig | null {
|
130 |
return this.currentLLMProvider || null;
|