🐛 fix: Fix encoding

pull/477/head
canisminor1990 2023-11-30 00:01:12 +08:00
parent b0bc847587
commit a308dabda1
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class LobePrompt:
if os.path.exists(self.prompt_file):
LobeLog.debug(f"Loading prompt from prompt.json")
with open(self.prompt_file, 'r') as f:
with open(self.prompt_file, 'r', encoding='utf-8') as f:
self.prompt = json.load(f)
else:
LobeLog.debug(f"Prompt file not found")