Set default system prompt in ConvertToChatThread

This commit is contained in:
Thorsten Sommer 2026-04-16 14:25:25 +02:00
parent 247c1b66b9
commit fb868753d3
No known key found for this signature in database
GPG Key ID: B0B7E2FC074BF1F5

View File

@ -79,7 +79,10 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
protected virtual bool ShowReset => true;
protected virtual ChatThread ConvertToChatThread => this.chatThread ?? new();
protected virtual ChatThread ConvertToChatThread => (this.chatThread ?? new()) with
{
SystemPrompt = SystemPrompts.DEFAULT,
};
private protected virtual RenderFragment? HeaderActions => null;