mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-06-15 23:20:32 +03:00
add 24 hours date and time formats to SystemVariables (#5778)
resolves #5774
This commit is contained in:
@@ -22,6 +22,13 @@ const SystemPromptVariables = {
|
||||
type: "system",
|
||||
multiUserRequired: false,
|
||||
},
|
||||
{
|
||||
key: "time_24",
|
||||
value: () => moment().format("HH:mm:ss"),
|
||||
description: "Current time (24-hour format)",
|
||||
type: "system",
|
||||
multiUserRequired: false,
|
||||
},
|
||||
{
|
||||
key: "date",
|
||||
value: () => moment().format("LL"),
|
||||
@@ -36,6 +43,13 @@ const SystemPromptVariables = {
|
||||
type: "system",
|
||||
multiUserRequired: false,
|
||||
},
|
||||
{
|
||||
key: "datetime_24",
|
||||
value: () => moment().format("YYYY-MM-DD HH:mm:ss"),
|
||||
description: "Current date and time (24-hour format)",
|
||||
type: "system",
|
||||
multiUserRequired: false,
|
||||
},
|
||||
{
|
||||
key: "user.id",
|
||||
value: (userId = null) => {
|
||||
|
||||
Reference in New Issue
Block a user