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

@@ -25,6 +25,9 @@ public partial class AssistantERI : AssistantBaseCore<SettingsDialogERIServer>
protected override string Description => T("The ERI is the External Retrieval Interface for AI Studio and other tools. The ERI acts as a contract between decentralized data sources and, e.g., AI Studio. The ERI is implemented by the data sources, allowing them to be integrated into AI Studio later. This means that the data sources assume the server role and AI Studio (or any other LLM tool) assumes the client role of the API. This approach serves to realize a Retrieval-Augmented Generation (RAG) process with external data.");
// The chat continues the work on the server, which needs the specification and the configuration of this prompt:
protected override ChatSystemPromptChoice ChatSystemPrompt => ChatSystemPromptChoice.ASSISTANT;
protected override string SystemPrompt => new ERIServerPrompt
{
ProgrammingLanguage = this.selectedProgrammingLanguage,
@@ -67,11 +70,6 @@ public partial class AssistantERI : AssistantBaseCore<SettingsDialogERIServer>
protected override bool SubmitDisabled => this.IsNoneERIServerSelected;
protected override ChatThread ConvertToChatThread => (this.ChatThread ?? new()) with
{
SystemPrompt = this.SystemPrompt,
};
/// <summary>
/// Indicates whether the generated ERI conversation can be opened in the chat view.
/// </summary>