- Apply Using XUserInfoClaims to RefreshAsync on McpServers ...
- Adding DateTime Prompt Handling in XAiServiceBase ... - Adding Support for Function Tools Attachment into ChatOptions when Asking Ai ... - Adding XDateTimeDescriptor class for Configuring DateTime attaching in Prompt Context, attached it on XAiApiConfiguration and also Configure it in appSettings File ...
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
namespace xAiApi.Models
|
||||
{
|
||||
public class XDateTimeDescriptor
|
||||
{
|
||||
/// <summary>
|
||||
/// Adding Current DateTime to Prompt ...
|
||||
/// </summary>
|
||||
public bool InjectIntoSystemPrompt { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Time Zone ...
|
||||
/// </summary>
|
||||
public string DefaultTimezone { get; set; } = "Asia/Tehran";
|
||||
|
||||
/// <summary>
|
||||
/// Georgian Date Format ...
|
||||
/// </summary>
|
||||
public string GregorianFormat { get; set; } = "yyyy-MM-dd HH:mm:ss";
|
||||
|
||||
/// <summary>
|
||||
/// Include Persian Calendar ...
|
||||
/// </summary>
|
||||
public bool IncludePersianCalendar { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Include Day of Week ...
|
||||
/// </summary>
|
||||
public bool IncludeDayOfWeek { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Include Unix Timestamp ...
|
||||
/// </summary>
|
||||
public bool IncludeUnixTimestamp { get; set; } = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user