mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 15:20:20 +00:00 
			
		
		
		
	Return the AI-generated text
This commit is contained in:
		
							parent
							
								
									084ad7b695
								
							
						
					
					
						commit
						1dec7de24e
					
				@ -99,7 +99,7 @@ public abstract partial class AssistantBase : ComponentBase
 | 
				
			|||||||
        return time;
 | 
					        return time;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    protected async Task AddAIResponseAsync(DateTimeOffset time)
 | 
					    protected async Task<string> AddAIResponseAsync(DateTimeOffset time)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        var aiText = new ContentText
 | 
					        var aiText = new ContentText
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@ -127,5 +127,9 @@ public abstract partial class AssistantBase : ComponentBase
 | 
				
			|||||||
        
 | 
					        
 | 
				
			||||||
        this.isProcessing = false;
 | 
					        this.isProcessing = false;
 | 
				
			||||||
        this.StateHasChanged();
 | 
					        this.StateHasChanged();
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        // Return the AI response:
 | 
				
			||||||
 | 
					        return aiText.Text;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user