🐛 fix: Fix encoding
parent
b0bc847587
commit
a308dabda1
|
|
@ -22,7 +22,7 @@ class LobePrompt:
|
||||||
if os.path.exists(self.prompt_file):
|
if os.path.exists(self.prompt_file):
|
||||||
LobeLog.debug(f"Loading prompt from prompt.json")
|
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)
|
self.prompt = json.load(f)
|
||||||
else:
|
else:
|
||||||
LobeLog.debug(f"Prompt file not found")
|
LobeLog.debug(f"Prompt file not found")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue