Added the prompt guide to the settings of the Prompt Optimizer and to configuration plugins (#1165)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-05 14:27:58 +01:00
1 parent a3d38c5db4
commit 974244ae51
19 files changed
+290 -26

No files matched your search

@@ -47,6 +47,11 @@ public enum DataRestoreOpenPointKind
/// </summary>
BATCH_PROCESSING_PATH_NOT_FOUND,
/// <summary>
/// The prompt guide which the Prompt Optimizer preselects does not exist on this computer.
/// </summary>
PROMPT_OPTIMIZER_GUIDE_NOT_FOUND,
/// <summary>
/// The file with custom root certificates does not exist on this computer.
/// </summary>
@@ -75,6 +75,10 @@ public static class DataRestoreOpenPoints
if (!string.IsNullOrWhiteSpace(batchProcessing.PromptFilePath) && !File.Exists(batchProcessing.PromptFilePath))
openPoints.Add(new(DataRestoreOpenPointKind.BATCH_PROCESSING_PATH_NOT_FOUND, batchProcessing.PromptFilePath));
var promptGuidePath = settings.PromptOptimizer.PreselectedCustomPromptGuidePath;
if (!string.IsNullOrWhiteSpace(promptGuidePath) && !File.Exists(promptGuidePath))
openPoints.Add(new(DataRestoreOpenPointKind.PROMPT_OPTIMIZER_GUIDE_NOT_FOUND, promptGuidePath));
var certificateBundlePath = settings.App.ExternalHttpCustomRootCertificateBundlePath;
if (settings.App.ExternalHttpCustomRootCertificatesEnabled && !string.IsNullOrWhiteSpace(certificateBundlePath) && !File.Exists(certificateBundlePath))
openPoints.Add(new(DataRestoreOpenPointKind.CERTIFICATE_BUNDLE_NOT_FOUND, certificateBundlePath));