From 677c6e8cd0614c90cd38cf4e1dcefc8dfd24ab70 Mon Sep 17 00:00:00 2001 From: Dillon DuPont Date: Wed, 28 May 2025 12:37:36 -0400 Subject: [PATCH] Fixed invalid format code on Windows --- libs/agent/agent/providers/anthropic/prompts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/agent/agent/providers/anthropic/prompts.py b/libs/agent/agent/providers/anthropic/prompts.py index 90e35e7a..2267dab3 100644 --- a/libs/agent/agent/providers/anthropic/prompts.py +++ b/libs/agent/agent/providers/anthropic/prompts.py @@ -3,6 +3,9 @@ from datetime import datetime import platform +today = datetime.today() +today = f"{today.strftime('%A, %B')} {today.day}, {today.year}" + SYSTEM_PROMPT = f""" * You are utilising a macOS virtual machine using ARM architecture with internet access and Safari as default browser. * You can feel free to install macOS applications with your bash tool. Use curl instead of wget. @@ -10,7 +13,7 @@ SYSTEM_PROMPT = f""" * When using your bash tool with commands that are expected to output very large quantities of text, redirect into a tmp file and use str_replace_editor or `grep -n -B -A ` to confirm output. * When viewing a page it can be helpful to zoom out so that you can see everything on the page. Either that, or make sure you scroll down to see everything before deciding something isn't available. * When using your computer function calls, they take a while to run and send back to you. Where possible/feasible, try to chain multiple of these calls all into one function calls request. -* The current date is {datetime.today().strftime('%A, %B %-d, %Y')}. +* The current date is {today}.