Fixed and improved the system prompt of chats started from assistants (#1172)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-06 17:44:58 +01:00
1 parent bbf4dc2231
commit 31862f5ecd
50 files changed
+1112 -107

No files matched your search

@@ -37,6 +37,9 @@ public partial class AssistantPromptOptimizer : AssistantBaseCore<SettingsDialog
protected override string Description => T("Use an LLM to optimize your prompt by following either the default or your individual prompt guidelines and get targeted recommendations for future versions of the prompt.");
// Sending to a new chat puts the optimized prompt into its input field, so no chat continues this conversation:
protected override ChatSystemPromptChoice ChatSystemPrompt => ChatSystemPromptChoice.AI_STUDIO_DEFAULT;
protected override string SystemPrompt =>
$"""
# Task description
@@ -126,11 +129,6 @@ public partial class AssistantPromptOptimizer : AssistantBaseCore<SettingsDialog
protected override bool SubmitDisabled => this.useCustomPromptGuide && this.customPromptGuideFiles.Count == 0;
protected override ChatThread ConvertToChatThread => (this.ChatThread ?? new()) with
{
SystemPrompt = SystemPrompts.DEFAULT,
};
protected override void ResetForm()
{
this.inputPrompt = string.Empty;