Spaces:
Paused
Paused
Update flare-ui/src/app/components/environment/environment.component.html
Browse files
flare-ui/src/app/components/environment/environment.component.html
CHANGED
|
@@ -34,7 +34,7 @@
|
|
| 34 |
}
|
| 35 |
</mat-select>
|
| 36 |
@if (currentLLMProviderSafe?.description) {
|
| 37 |
-
<mat-hint>{{ currentLLMProviderSafe
|
| 38 |
}
|
| 39 |
</mat-form-field>
|
| 40 |
|
|
@@ -47,7 +47,7 @@
|
|
| 47 |
formControlName="llm_provider_api_key"
|
| 48 |
[placeholder]="getApiKeyPlaceholder('llm')">
|
| 49 |
<mat-error *ngIf="form.get('llm_provider_api_key')?.hasError('required')">
|
| 50 |
-
API key is required for {{ currentLLMProviderSafe?.display_name }}
|
| 51 |
</mat-error>
|
| 52 |
</mat-form-field>
|
| 53 |
}
|
|
@@ -66,7 +66,7 @@
|
|
| 66 |
<mat-icon>wifi_tethering</mat-icon>
|
| 67 |
</button>
|
| 68 |
<mat-error *ngIf="form.get('llm_provider_endpoint')?.hasError('required')">
|
| 69 |
-
Endpoint is required for {{ currentLLMProviderSafe?.display_name }}
|
| 70 |
</mat-error>
|
| 71 |
</mat-form-field>
|
| 72 |
}
|
|
@@ -190,7 +190,7 @@
|
|
| 190 |
}
|
| 191 |
</mat-select>
|
| 192 |
@if (currentTTSProviderSafe?.description) {
|
| 193 |
-
<mat-hint>{{ currentTTSProviderSafe
|
| 194 |
}
|
| 195 |
</mat-form-field>
|
| 196 |
|
|
@@ -203,7 +203,7 @@
|
|
| 203 |
formControlName="tts_provider_api_key"
|
| 204 |
[placeholder]="getApiKeyPlaceholder('tts')">
|
| 205 |
<mat-error *ngIf="form.get('tts_provider_api_key')?.hasError('required')">
|
| 206 |
-
API key is required for {{ currentTTSProviderSafe?.display_name }}
|
| 207 |
</mat-error>
|
| 208 |
</mat-form-field>
|
| 209 |
}
|
|
@@ -241,7 +241,7 @@
|
|
| 241 |
}
|
| 242 |
</mat-select>
|
| 243 |
@if (currentSTTProviderSafe?.description) {
|
| 244 |
-
<mat-hint>{{ currentSTTProviderSafe
|
| 245 |
}
|
| 246 |
</mat-form-field>
|
| 247 |
|
|
@@ -254,7 +254,7 @@
|
|
| 254 |
formControlName="stt_provider_api_key"
|
| 255 |
[placeholder]="getApiKeyPlaceholder('stt')">
|
| 256 |
<mat-error *ngIf="form.get('stt_provider_api_key')?.hasError('required')">
|
| 257 |
-
{{ currentSTTProviderSafe?.name === 'google' ? 'Credentials path' : 'API key' }} is required for {{ currentSTTProviderSafe?.display_name }}
|
| 258 |
</mat-error>
|
| 259 |
</mat-form-field>
|
| 260 |
}
|
|
|
|
| 34 |
}
|
| 35 |
</mat-select>
|
| 36 |
@if (currentLLMProviderSafe?.description) {
|
| 37 |
+
<mat-hint>{{ currentLLMProviderSafe?.description }}</mat-hint>
|
| 38 |
}
|
| 39 |
</mat-form-field>
|
| 40 |
|
|
|
|
| 47 |
formControlName="llm_provider_api_key"
|
| 48 |
[placeholder]="getApiKeyPlaceholder('llm')">
|
| 49 |
<mat-error *ngIf="form.get('llm_provider_api_key')?.hasError('required')">
|
| 50 |
+
API key is required for {{ currentLLMProviderSafe?.display_name || 'this provider' }}
|
| 51 |
</mat-error>
|
| 52 |
</mat-form-field>
|
| 53 |
}
|
|
|
|
| 66 |
<mat-icon>wifi_tethering</mat-icon>
|
| 67 |
</button>
|
| 68 |
<mat-error *ngIf="form.get('llm_provider_endpoint')?.hasError('required')">
|
| 69 |
+
Endpoint is required for {{ currentLLMProviderSafe?.display_name || 'this provider' }}
|
| 70 |
</mat-error>
|
| 71 |
</mat-form-field>
|
| 72 |
}
|
|
|
|
| 190 |
}
|
| 191 |
</mat-select>
|
| 192 |
@if (currentTTSProviderSafe?.description) {
|
| 193 |
+
<mat-hint>{{ currentTTSProviderSafe?.description }}</mat-hint>
|
| 194 |
}
|
| 195 |
</mat-form-field>
|
| 196 |
|
|
|
|
| 203 |
formControlName="tts_provider_api_key"
|
| 204 |
[placeholder]="getApiKeyPlaceholder('tts')">
|
| 205 |
<mat-error *ngIf="form.get('tts_provider_api_key')?.hasError('required')">
|
| 206 |
+
API key is required for {{ currentTTSProviderSafe?.display_name || 'this provider' }}
|
| 207 |
</mat-error>
|
| 208 |
</mat-form-field>
|
| 209 |
}
|
|
|
|
| 241 |
}
|
| 242 |
</mat-select>
|
| 243 |
@if (currentSTTProviderSafe?.description) {
|
| 244 |
+
<mat-hint>{{ currentSTTProviderSafe?.description }}</mat-hint>
|
| 245 |
}
|
| 246 |
</mat-form-field>
|
| 247 |
|
|
|
|
| 254 |
formControlName="stt_provider_api_key"
|
| 255 |
[placeholder]="getApiKeyPlaceholder('stt')">
|
| 256 |
<mat-error *ngIf="form.get('stt_provider_api_key')?.hasError('required')">
|
| 257 |
+
{{ currentSTTProviderSafe?.name === 'google' ? 'Credentials path' : 'API key' }} is required for {{ currentSTTProviderSafe?.display_name || 'this provider' }}
|
| 258 |
</mat-error>
|
| 259 |
</mat-form-field>
|
| 260 |
}
|