diff --git a/ui-ngx/src/app/modules/home/components/ai-model/ai-model-dialog.component.html b/ui-ngx/src/app/modules/home/components/ai-model/ai-model-dialog.component.html
index 44fe9dcda7..9d192a0d14 100644
--- a/ui-ngx/src/app/modules/home/components/ai-model/ai-model-dialog.component.html
+++ b/ui-ngx/src/app/modules/home/components/ai-model/ai-model-dialog.component.html
@@ -225,6 +225,7 @@
additionalClass="tb-suffix-show-on-hover"
appearance="outline"
panelWidth=""
+ showInlineError
required
[label]="(provider === aiProvider.AZURE_OPENAI ? 'ai-models.deployment-name': 'ai-models.model-id') | translate"
[errorText]="(provider === aiProvider.AZURE_OPENAI ? 'ai-models.deployment-name-required': 'ai-models.model-id-required') | translate"
diff --git a/ui-ngx/src/app/shared/components/string-autocomplete.component.html b/ui-ngx/src/app/shared/components/string-autocomplete.component.html
index 8eb22707f9..31966b932d 100644
--- a/ui-ngx/src/app/shared/components/string-autocomplete.component.html
+++ b/ui-ngx/src/app/shared/components/string-autocomplete.component.html
@@ -24,12 +24,12 @@
[matAutocomplete]="optionsAutocomplete">
-
warning
-
+
{{errorText}}
this.updateView(value)),
@@ -152,7 +156,7 @@ export class StringAutocompleteComponent implements ControlValueAccessor, OnInit
updateView(value: string) {
this.searchText = value ? value : '';
if (this.modelValue !== value) {
- this.modelValue = value;
+ this.modelValue = value?.trim();
this.propagateChange(this.modelValue);
}
}