fix : issue 25 for windows with utf8
This commit is contained in:
1 parent
25fd3ab114
commit
988f6a9d6d
1 file changed
+1
-1
@@ -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}")
|
||||
|
||||
Reference in new issue
Block a user