#Does anyone know how to make completions

1 messages · Page 1 of 1 (latest)

heady sundial
#

Lots of issues with time zones. The time is usually returned incorrectly in UTC.

User input - Remind me to call Santhosh at 5 PM.

This 5 PM must be in the user's time zone. For this we are adding context for which time zone the user is in and even adding timestamps of messages in chat history.

#

The expectation is that completions API will call a tool with the correct timestamp for the reminder.

violet sapphire
#

My solution (imo) @heady sundial :
If GPT has been trained on 24hr UTC then just let it return utc and then convert it back to the user’s timezone with a library.
Best practice in 2024 is still to take the mental load off of the chatbot. You’re wasting tokens if you’re having it manually use nlp and giving it extra context rather than just requiring a function call (especially with the risk for hallucinations even if you do manage to get it to return timestamps in diff zones).
TLDR attach a function call that converts 5pm based on the user’s timezone to utc and return it in the conv history, have completions return be the string in utc passed to whatever api call you’re using for reminders, and as ur passing to frontend convert back to user’s timezone.
-ETA you may need a little bit of fine-tuning to get it to the standard of iso 8601. Datetime was actually the first fine-tuning job I ever did and it worked pretty well. Look into synthetic data so that given whatever request is needed for the function call it will return in the proper format.

violet sapphire
heady sundial
#

Peak help! Thanks @violet sapphire

#

Although in our case for Hana 90% of times the timestamps work very well, GPT 4o is much better, GPT 3.5 was totally terrible

#

We will try to always make the model give a decision in UTC itself, i think this will create good consistency