From 988f6a9d6d5356d8b8f0837c5305b995ae2c2dbb Mon Sep 17 00:00:00 2001 From: martin legrand Date: Sat, 15 Mar 2025 18:44:25 +0100 Subject: [PATCH] fix : issue 25 for windows with utf8 --- sources/agents/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/agents/agent.py b/sources/agents/agent.py index af2559a..9e15b8b 100644 --- a/sources/agents/agent.py +++ b/sources/agents/agent.py @@ -58,7 +58,7 @@ class Agent(): def load_prompt(self, file_path: str) -> str: try: - with open(file_path, 'r') as f: + with open(file_path, 'r', encoding="utf-8") as f: return f.read() except FileNotFoundError: raise FileNotFoundError(f"Prompt file not found at path: {file_path}")