Compare commits

..
3 Commits
Author SHA1 Message Date
saherelm 3a228439a5 add config for cache ttl ... 2026-11-15 21:26:41 +03:30
saherelm 13cd0745c6 last ... 2026-11-14 08:34:10 +03:30
saherelm 5bccce3475 apply fix on Create Conversation Validations ... 2026-11-11 11:56:11 +03:30
3 changed files with 4 additions and 4 deletions
+1 -4
View File
@@ -1043,10 +1043,7 @@ namespace xAiApi.Controllers
{ {
// //
// Validate ... // Validate ...
if (projectId.IsNull() || if (item.IsNullOrDefault())
!projectId.HasValue ||
item.IsNullOrDefault() ||
projectId.Value.IsDefaultGuid())
{ {
XException.InvalidArgs.Throw(); XException.InvalidArgs.Throw();
} }
+2
View File
@@ -1728,6 +1728,8 @@ namespace xAiApi.Providers
// Retrieve Conversation Message ... // Retrieve Conversation Message ...
var messages = await dataProvider var messages = await dataProvider
.LoadMessages( .LoadMessages(
ownerId: userInfo.UserId,
connectionId: connectionId,
conversationId: conversationId.Value, conversationId: conversationId.Value,
cancellationToken: cancellationToken cancellationToken: cancellationToken
); );
+1
View File
@@ -4,6 +4,7 @@
"DefaultLanguage": "fa-IR", "DefaultLanguage": "fa-IR",
"XPoweredValue": "SaherElmITCenter", "XPoweredValue": "SaherElmITCenter",
"WelcomeMessage": "Welcome to xSaherElm Project's AI API", "WelcomeMessage": "Welcome to xSaherElm Project's AI API",
"DefaultCacheTtlMinutes": 10,
"AllowedOrigins": [ "AllowedOrigins": [
"http://api.saherelm.ir", "http://api.saherelm.ir",
"https://api.saherelm.ir", "https://api.saherelm.ir",