mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 17:57:59 +00:00
Improved ERI specification handling
This commit is contained in:
1 file changed
+3
-2
@@ -159,6 +159,7 @@ public partial class AssistantERI : AssistantBaseCore
|
|||||||
private string serverName = string.Empty;
|
private string serverName = string.Empty;
|
||||||
private string serverDescription = string.Empty;
|
private string serverDescription = string.Empty;
|
||||||
private ERIVersion selectedERIVersion = ERIVersion.V1;
|
private ERIVersion selectedERIVersion = ERIVersion.V1;
|
||||||
|
private string? eriSpecification;
|
||||||
private ProgrammingLanguages selectedProgrammingLanguage = ProgrammingLanguages.NONE;
|
private ProgrammingLanguages selectedProgrammingLanguage = ProgrammingLanguages.NONE;
|
||||||
private string otherProgrammingLanguage = string.Empty;
|
private string otherProgrammingLanguage = string.Empty;
|
||||||
private DataSources selectedDataSource = DataSources.NONE;
|
private DataSources selectedDataSource = DataSources.NONE;
|
||||||
@@ -628,8 +629,8 @@ public partial class AssistantERI : AssistantBaseCore
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var specification = await this.selectedERIVersion.ReadSpecification(this.HttpClient);
|
this.eriSpecification = await this.selectedERIVersion.ReadSpecification(this.HttpClient);
|
||||||
if (string.IsNullOrWhiteSpace(specification))
|
if (string.IsNullOrWhiteSpace(this.eriSpecification))
|
||||||
{
|
{
|
||||||
this.AddInputIssue("The ERI specification could not be loaded. Please try again later.");
|
this.AddInputIssue("The ERI specification could not be loaded. Please try again later.");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user