diff --git a/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs b/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs index 30939446..a7ebe2eb 100644 --- a/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs +++ b/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs @@ -339,6 +339,7 @@ public abstract partial class AssistantBase : 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 : 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 : AssistantLowerBase wher protected virtual void RestoreCustomAssistantSessionState(AssistantSessionStateReader state) { } #endregion -} \ No newline at end of file +} diff --git a/app/MindWork AI Studio/Components/ChatComponent.razor.cs b/app/MindWork AI Studio/Components/ChatComponent.razor.cs index 2cee066a..1c90dc64 100644 --- a/app/MindWork AI Studio/Components/ChatComponent.razor.cs +++ b/app/MindWork AI Studio/Components/ChatComponent.razor.cs @@ -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 -} \ No newline at end of file +}