Fixed dropping a custom prompt guide into the Prompt Optimizer (#1163)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-05 12:38:21 +01:00
1 parent 9c98bdae86
commit a3d38c5db4
7 files changed
+49 -49

No files matched your search

@@ -95,17 +95,6 @@
@T("Use custom prompt guide")
</MudSwitch>
@if (this.useCustomPromptGuide)
{
<AttachDocuments Name="Custom Prompt Guide"
@bind-DocumentPaths="@this.customPromptGuideFiles"
OnChange="@this.OnCustomPromptGuideFilesChanged"
CatchAllDocuments="false"
UseSmallForm="true"
ValidateMediaFileTypes="false"
Provider="@this.ProviderSettings"/>
}
<MudTextField T="string"
Text="@this.CustomPromptGuideFileName"
Label="@T("Custom prompt guide file")"
@@ -123,4 +112,13 @@
</MudButton>
</MudStack>
@if (this.useCustomPromptGuide)
{
<ReadFileContent Text="@T("Load the prompt guide from file")"
@bind-FileContent="@this.customPromptingGuidelineContent"
FilePathLoaded="@this.SetCustomPromptGuideFile"
Filter="@CUSTOM_PROMPT_GUIDE_FILE_TYPES"
EnableDragDrop="true"/>
}
<ProviderSelection @bind-ProviderSettings="@this.ProviderSettings" ValidateProvider="@this.ValidatingProvider"/>