I know that if I ask to include the current year it will understand that it’s 2024, but without mentioning it, it checks only for 2023. Is there a possibility where to make it check for the current year? I tried to include it in the instructions, but unfortunately, it did not work
Hi and welcome to the Dev Community!
This isn’t really a bug, it’s just how these models function. They have no way of knowing the current year" or really anything else requiring live knowledge without being given that information directly. You should be able to provide the year through code though to solve this issue.
from datetime import datetime
# Get the current date
current_date = datetime.now().strftime("%Y-%m-%d")
# Create a prompt including the current date
prompt = f"Today's date is {current_date}. Can you help with..."
Including the date and tweaking the prompt should get your desired outcome, but if not feel free to come back here and we’ll do our best to help!
2 Likes