mirror of
https://github.com/tcsenpai/agenticSeek.git
synced 2025-06-07 11:35:29 +00:00
Merge pull request #27 from InfernalDread/patch-1
Update agent.py to fix decode error
This commit is contained in:
commit
2d413dcd70
@ -58,7 +58,7 @@ class Agent():
|
|||||||
|
|
||||||
def load_prompt(self, file_path: str) -> str:
|
def load_prompt(self, file_path: str) -> str:
|
||||||
try:
|
try:
|
||||||
with open(file_path, 'r') as f:
|
with open(file_path, 'r', encoding="utf-8") as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
raise FileNotFoundError(f"Prompt file not found at path: {file_path}")
|
raise FileNotFoundError(f"Prompt file not found at path: {file_path}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user