UTF encoding when reading system prompt

This commit is contained in:
2024-08-20 16:48:06 -05:00
parent cedd98c3fc
commit 50b2070e76
+1 -1
View File
@@ -15,7 +15,7 @@ class BaseTelegramInferenceBot(ABC):
@staticmethod
def load_system_prompt():
with open(os.environ.get("SYSTEM_PROMPT_PATH"), "r") as file:
with open(os.environ.get("SYSTEM_PROMPT_PATH"), "r", encoding="utf-8") as file:
return file.read().strip()
@staticmethod