enabling chart output

This commit is contained in:
Nils Kruthoff 2026-08-04 14:53:33 +02:00
parent d975b31b75
commit 05412eb77f
No known key found for this signature in database
GPG Key ID: A5C0151B4DDB172C
2 changed files with 7 additions and 2 deletions

View File

@ -339,6 +339,7 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
this.ChatThread = new()
{
IncludeDateTime = false,
AllowChartOutput = true,
SelectedProvider = this.ProviderSettings.Id,
SelectedProfile = this.AllowProfiles ? this.CurrentProfile.Id : Profile.NO_PROFILE.Id,
SystemPrompt = this.SystemPrompt,
@ -355,6 +356,7 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
this.ChatThread = new()
{
IncludeDateTime = false,
AllowChartOutput = true,
SelectedProvider = this.ProviderSettings.Id,
SelectedProfile = this.AllowProfiles ? this.CurrentProfile.Id : Profile.NO_PROFILE.Id,
SystemPrompt = this.SystemPrompt,
@ -919,4 +921,4 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
protected virtual void RestoreCustomAssistantSessionState(AssistantSessionStateReader state) { }
#endregion
}
}

View File

@ -817,6 +817,9 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable
//
}
// This is a user-visible chat request. Internal structured LLM requests keep the default disabled.
this.ChatThread.AllowChartOutput = true;
var time = DateTimeOffset.Now;
IContent? lastUserPrompt;
if (!reuseLastUserPrompt)
@ -1304,4 +1307,4 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable
}
#endregion
}
}