Fixed chat conversion of job posting, legal check, and my task assistants (#151)

This commit is contained in:
Thorsten Sommer 2024-09-15 22:06:22 +02:00 committed by GitHub
parent 375be805a1
commit e6be9a593e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,5 @@
using AIStudio.Chat;
namespace AIStudio.Assistants.JobPosting; namespace AIStudio.Assistants.JobPosting;
public partial class AssistantJobPostings : AssistantBaseCore public partial class AssistantJobPostings : AssistantBaseCore
@ -52,6 +54,11 @@ public partial class AssistantJobPostings : AssistantBaseCore
protected override bool AllowProfiles => false; protected override bool AllowProfiles => false;
protected override ChatThread ConvertToChatThread => (this.chatThread ?? new()) with
{
SystemPrompt = SystemPrompts.DEFAULT,
};
protected override void ResetFrom() protected override void ResetFrom()
{ {
this.inputEntryDate = string.Empty; this.inputEntryDate = string.Empty;

View File

@ -1,3 +1,5 @@
using AIStudio.Chat;
namespace AIStudio.Assistants.LegalCheck; namespace AIStudio.Assistants.LegalCheck;
public partial class AssistantLegalCheck : AssistantBaseCore public partial class AssistantLegalCheck : AssistantBaseCore
@ -30,6 +32,11 @@ public partial class AssistantLegalCheck : AssistantBaseCore
protected override bool SubmitDisabled => this.isAgentRunning; protected override bool SubmitDisabled => this.isAgentRunning;
protected override ChatThread ConvertToChatThread => (this.chatThread ?? new()) with
{
SystemPrompt = SystemPrompts.DEFAULT,
};
protected override void ResetFrom() protected override void ResetFrom()
{ {
this.inputLegalDocument = string.Empty; this.inputLegalDocument = string.Empty;

View File

@ -1,3 +1,4 @@
using AIStudio.Chat;
using AIStudio.Settings; using AIStudio.Settings;
namespace AIStudio.Assistants.MyTasks; namespace AIStudio.Assistants.MyTasks;
@ -35,6 +36,11 @@ public partial class AssistantMyTasks : AssistantBaseCore
protected override bool ShowProfileSelection => false; protected override bool ShowProfileSelection => false;
protected override ChatThread ConvertToChatThread => (this.chatThread ?? new()) with
{
SystemPrompt = SystemPrompts.DEFAULT,
};
protected override void ResetFrom() protected override void ResetFrom()
{ {
this.inputText = string.Empty; this.inputText = string.Empty;

View File

@ -1,4 +1,5 @@
# v0.9.12, build 187 (2024-09-xx xx:xx UTC) # v0.9.12, build 187 (2024-09-xx xx:xx UTC)
- Added a job posting assistant to the business category. - Added a job posting assistant to the business category.
- Fixed margin-related issue in the `ConfigurationText` component. - Fixed margin-related issue in the `ConfigurationText` component.
- Fixed chat conversion of job posting, legal check, and my task assistants.
- Refactored the `ConfigurationText` component to debounce the input field to prevent unnecessary configuration updates. The component now also supports multiline text. - Refactored the `ConfigurationText` component to debounce the input field to prevent unnecessary configuration updates. The component now also supports multiline text.