From 3964cadba64bb4528e30dad460c80fd8cbc6052a Mon Sep 17 00:00:00 2001 From: dajiaohuang Date: Sun, 4 Oct 2026 10:15:00 +0800 Subject: [PATCH] Use each group member chat provider --- .../Core/ChatSessionViewModel/ChatSessionViewModel.Request.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Desktop/RodelAgent.UI/ViewModels/Core/ChatSessionViewModel/ChatSessionViewModel.Request.cs b/src/Desktop/RodelAgent.UI/ViewModels/Core/ChatSessionViewModel/ChatSessionViewModel.Request.cs index de0aa86b..daf96a97 100644 --- a/src/Desktop/RodelAgent.UI/ViewModels/Core/ChatSessionViewModel/ChatSessionViewModel.Request.cs +++ b/src/Desktop/RodelAgent.UI/ViewModels/Core/ChatSessionViewModel/ChatSessionViewModel.Request.cs @@ -280,7 +280,7 @@ private async Task GenerateGroupContentAsync() var serviceConfig = await this.Get().GetServiceConfigAsync(currentAgent.Data.Provider!.Value, new(options.ModelId!, string.Empty)); chatService.Initialize(serviceConfig); - var client = new ChatClientBuilder(_chatService!.Client!) + var client = new ChatClientBuilder(chatService.Client!) .UseFunctionInvocation(configure: c => c.MaximumIterationsPerRequest = 30) .Build();