Input time and date dynamically in modelSpec #3713
Replies: 6 comments 6 replies
-
We would also very much like to have that. Anthropic and OpenAI are doing this for ChatGPT and Claude as well, btw. |
Beta Was this translation helpful? Give feedback.
-
As @dareima mentioned, Anthropic does this in their own system prompt:
https://docs.anthropic.com/en/release-notes/system-prompts#july-12th-2024 It would be great to have a dynamic templating system for these kind of prompts. |
Beta Was this translation helpful? Give feedback.
-
As far as I understand the code, currently the only evaluation of the "current user" and "current side" occurs client-side and only the "prompt system" where you can configure static prompt. A possible solution would be to implement the {current_datetime} replacement server side, maybe a the client level when the "promptPrefix" is evaluated. We could generate a full datetime with timezone ( we don't know the time zone client side ). |
Beta Was this translation helpful? Give feedback.
-
@owengo would querying an NTP server be another possible solution attempt? Via the NTP_SERVER=192.53.103.108 |
Beta Was this translation helpful? Give feedback.
-
I have just submitted: #4335 and LibreChat-AI/librechat.ai#132 , which allow to use {{current_date}} in presets for OpenAI, Anthropic and Assistants. It's probably straigthforward to do the same for other models but I can't test them right now. |
Beta Was this translation helpful? Give feedback.
-
hm, good to know - Any way to make it work with the custom instructions of
the model itself?
…On Mon, Nov 11, 2024 at 1:00 AM owengo ***@***.***> wrote:
This works with the "additionnal instructions" from the settings, not the
"custom instructions" of the model.
—
Reply to this email directly, view it on GitHub
<#3713 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACEE27GBDBQMN67TFBMFG4T2ABP2BAVCNFSM6AAAAABMZ3GRPOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRRGE3DOOI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi all,
In our current chat implementation we use a dynamic system message which includes todays date. We have found that this helps ground the model and reduce hallucination, when it comes to questions about events, places or people.
Possible solution
My immediate thought was to rebuild our app every day at midnight, and simple inject the date into the librechat.yml file. It isn't very elegant, but it would do the job. But:
If there are no other ways to support this, this can be considered a feature request.
Beta Was this translation helpful? Give feedback.
All reactions