mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 11:38:00 +00:00
Lock the expert settings for enterprise-managed providers
This commit is contained in:
2 files changed
+6
-2
No files matched your search
@@ -171,6 +171,7 @@
|
|||||||
Adornment="Adornment.Start"
|
Adornment="Adornment.Start"
|
||||||
AdornmentIcon="@Icons.Material.Filled.Numbers"
|
AdornmentIcon="@Icons.Material.Filled.Numbers"
|
||||||
AdornmentColor="Color.Info"
|
AdornmentColor="Color.Info"
|
||||||
|
Disabled="@this.IsEnterpriseConfiguration"
|
||||||
Validation="@this.ValidateTokenLimit"
|
Validation="@this.ValidateTokenLimit"
|
||||||
HelperText="@T("Maximum number of tokens sent to the embedding model per chunk. The default is 8,192.")"/>
|
HelperText="@T("Maximum number of tokens sent to the embedding model per chunk. The default is 8,192.")"/>
|
||||||
<MudNumericField
|
<MudNumericField
|
||||||
@@ -183,6 +184,7 @@
|
|||||||
Adornment="Adornment.Start"
|
Adornment="Adornment.Start"
|
||||||
AdornmentIcon="@Icons.Material.Filled.FormatListNumbered"
|
AdornmentIcon="@Icons.Material.Filled.FormatListNumbered"
|
||||||
AdornmentColor="Color.Info"
|
AdornmentColor="Color.Info"
|
||||||
|
Disabled="@this.IsEnterpriseConfiguration"
|
||||||
Validation="@this.ValidateEmbeddingBatchSize"
|
Validation="@this.ValidateEmbeddingBatchSize"
|
||||||
HelperText="@T("How many chunks are sent to the embedding provider at once. The default is 1.")"/>
|
HelperText="@T("How many chunks are sent to the embedding provider at once. The default is 1.")"/>
|
||||||
<MudStack Row="@true" Spacing="3" Class="mb-3" StretchItems="StretchItems.None" AlignItems="AlignItems.Center">
|
<MudStack Row="@true" Spacing="3" Class="mb-3" StretchItems="StretchItems.None" AlignItems="AlignItems.Center">
|
||||||
@@ -191,6 +193,7 @@
|
|||||||
Text="@this.dataFilePath"
|
Text="@this.dataFilePath"
|
||||||
TextChanged="@this.OnDataFilePathChanged"
|
TextChanged="@this.OnDataFilePathChanged"
|
||||||
Label="@T("Selected file path for the custom tokenizer")"
|
Label="@T("Selected file path for the custom tokenizer")"
|
||||||
|
Disabled="@this.IsEnterpriseConfiguration"
|
||||||
Validation="@this.providerValidation.ValidatingCustomTokenizer"
|
Validation="@this.providerValidation.ValidatingCustomTokenizer"
|
||||||
Adornment="Adornment.Start"
|
Adornment="Adornment.Start"
|
||||||
AdornmentIcon="@Icons.Material.Filled.AttachFile"
|
AdornmentIcon="@Icons.Material.Filled.AttachFile"
|
||||||
@@ -201,7 +204,7 @@
|
|||||||
ErrorText="@this.dataCustomTokenizerValidationIssue"
|
ErrorText="@this.dataCustomTokenizerValidationIssue"
|
||||||
OnClearButtonClick="@this.ClearPathTokenizer"
|
OnClearButtonClick="@this.ClearPathTokenizer"
|
||||||
/>
|
/>
|
||||||
<MudButton StartIcon="@Icons.Material.Filled.FolderOpen" Variant="Variant.Outlined" Color="Color.Primary" Disabled="@this.isTokenizerFileDialogOpen" OnClick="@this.OpenTokenizerFileDialog">
|
<MudButton StartIcon="@Icons.Material.Filled.FolderOpen" Variant="Variant.Outlined" Color="Color.Primary" Disabled="@(this.IsEnterpriseConfiguration || this.isTokenizerFileDialogOpen)" OnClick="@this.OpenTokenizerFileDialog">
|
||||||
@T("Choose File")
|
@T("Choose File")
|
||||||
</MudButton>
|
</MudButton>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
|||||||
@@ -257,6 +257,7 @@
|
|||||||
Text="@this.dataFilePath"
|
Text="@this.dataFilePath"
|
||||||
TextChanged="@this.OnDataFilePathChanged"
|
TextChanged="@this.OnDataFilePathChanged"
|
||||||
Label="@T("Selected file path for the custom tokenizer")"
|
Label="@T("Selected file path for the custom tokenizer")"
|
||||||
|
Disabled="@this.IsEnterpriseConfiguration"
|
||||||
Validation="@this.providerValidation.ValidatingCustomTokenizer"
|
Validation="@this.providerValidation.ValidatingCustomTokenizer"
|
||||||
Adornment="Adornment.Start"
|
Adornment="Adornment.Start"
|
||||||
AdornmentIcon="@Icons.Material.Filled.AttachFile"
|
AdornmentIcon="@Icons.Material.Filled.AttachFile"
|
||||||
@@ -267,7 +268,7 @@
|
|||||||
ErrorText="@this.dataCustomTokenizerValidationIssue"
|
ErrorText="@this.dataCustomTokenizerValidationIssue"
|
||||||
OnClearButtonClick="@this.ClearPathTokenizer"
|
OnClearButtonClick="@this.ClearPathTokenizer"
|
||||||
/>
|
/>
|
||||||
<MudButton StartIcon="@Icons.Material.Filled.FolderOpen" Variant="Variant.Outlined" Color="Color.Primary" Disabled="@this.isTokenizerFileDialogOpen" OnClick="@this.OpenTokenizerFileDialog">
|
<MudButton StartIcon="@Icons.Material.Filled.FolderOpen" Variant="Variant.Outlined" Color="Color.Primary" Disabled="@(this.IsEnterpriseConfiguration || this.isTokenizerFileDialogOpen)" OnClick="@this.OpenTokenizerFileDialog">
|
||||||
@T("Choose File")
|
@T("Choose File")
|
||||||
</MudButton>
|
</MudButton>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
|||||||
Reference in new issue
Block a user