mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 21:59:48 +00:00
Added generate method to trigger validation
This commit is contained in:
parent
4781fc68fe
commit
898d1a0477
@ -26,7 +26,7 @@ public partial class AssistantEDI : AssistantBaseCore
|
|||||||
|
|
||||||
protected override string SubmitText => "Create the EDI server";
|
protected override string SubmitText => "Create the EDI server";
|
||||||
|
|
||||||
protected override Func<Task> SubmitAction => () => Task.CompletedTask;
|
protected override Func<Task> SubmitAction => this.GenerateServer;
|
||||||
|
|
||||||
protected override ChatThread ConvertToChatThread => (this.chatThread ?? new()) with
|
protected override ChatThread ConvertToChatThread => (this.chatThread ?? new()) with
|
||||||
{
|
{
|
||||||
@ -124,4 +124,11 @@ public partial class AssistantEDI : AssistantBaseCore
|
|||||||
|
|
||||||
return $"You have selected {selectedValues.Count} authentication methods";
|
return $"You have selected {selectedValues.Count} authentication methods";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private async Task GenerateServer()
|
||||||
|
{
|
||||||
|
await this.form!.Validate();
|
||||||
|
if (!this.inputIsValid)
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user