I am working on an application where the model needs to distinguish between past and future events based on the current date (e.g. ‘Is this event next week or was it yesterday?’).
Does the Gemini API automatically include a current timestamp in the context window, or is the standard pattern to manually pass datetime.now() into the System Instructions for every request? I want to ensure the model has a grounded concept of ‘now’.
I think they don’t. Also, I provided a list of dates in the current year to various Gemini models and asked which weekday (Monday, Tuesday, etc.) each day was, and they hallucinated many of them.
Nessa forma é simples, mas dentro de um projeto que tem muito contexto de data, ontem, hoje, agora, ele alucina mesmo colocando no system instruction ou forçando.
Ja tentei fazer na instrução o seguinte:ao inicia o projeto todo dia vc vai falar qual data é. Mesmo usando o comando certo em código.