From 7ddf4d90c4c7d1d3b74cc547c54993b9604439f0 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Sun, 27 Sep 2026 22:01:25 +0330 Subject: [PATCH] last ... --- Providers/XAIServiceBase.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Providers/XAIServiceBase.cs b/Providers/XAIServiceBase.cs index 93fadc8..cb2aaa3 100644 --- a/Providers/XAIServiceBase.cs +++ b/Providers/XAIServiceBase.cs @@ -21,8 +21,6 @@ using Microsoft.Extensions.Logging; using System.ClientModel.Primitives; using System.Runtime.CompilerServices; using xAiModels.Models.Dtos; -using xIdentityModels.Models; -using System.Linq; using xAiService.Extensions; namespace xAiApi.Providers @@ -359,7 +357,19 @@ namespace xAiApi.Providers // // Here we have to fill Conversations of Default Project ... + var defaultProjectId = result.GetDafualtProject(ownerId); + // + // Reading Conversations of Specified Default Project ... + var conversations = await dataProvider.LoadConversations( + fillMessages: false, + projectId: defaultProjectId, + cancellationToken: cancellationToken + ); + var defaultConversationId = conversations.GetDefaultConversation( + ownerId: ownerId, + projectId: defaultProjectId + ); // return result;