UTF encoding when reading system prompt
This commit is contained in:
@@ -15,7 +15,7 @@ class BaseTelegramInferenceBot(ABC):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def load_system_prompt():
|
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()
|
return file.read().strip()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user