mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 21:59:48 +00:00
Added manual validation steps
This commit is contained in:
parent
e998e9740f
commit
e932c21709
@ -622,10 +622,17 @@ public partial class AssistantERI : AssistantBaseCore
|
|||||||
if (!this.inputIsValid)
|
if (!this.inputIsValid)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var ediSpecification = await this.selectedERIVersion.ReadSpecification(this.HttpClient);
|
if(this.retrievalProcesses.Count == 0)
|
||||||
if (string.IsNullOrWhiteSpace(ediSpecification))
|
|
||||||
{
|
{
|
||||||
// TODO: Show an error message
|
this.AddInputIssue("Please describe at least one retrieval process.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var specification = await this.selectedERIVersion.ReadSpecification(this.HttpClient);
|
||||||
|
if (string.IsNullOrWhiteSpace(specification))
|
||||||
|
{
|
||||||
|
this.AddInputIssue("The ERI specification could not be loaded. Please try again later.");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user