mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 11:40:21 +00:00 
			
		
		
		
	Improved ERI specification handling
This commit is contained in:
		
							parent
							
								
									aefd8adbeb
								
							
						
					
					
						commit
						e654408a60
					
				@ -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;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user