Encoding utf-8, bug fix

This commit is contained in:
AjaySi
2024-04-12 18:46:42 +05:30
parent e3c3c03729
commit bdab2e9959
4 changed files with 4 additions and 4 deletions

View File

@@ -334,7 +334,7 @@ def check_llm_environs():
api_key = typer.prompt(f"\n🙆🙆Please enter {api_key_var} API Key:")
# Update .env file
with open(".env", "a") as env_file:
with open(".env", "a", encoding="utf-8") as env_file:
env_file.write(f"GPT_PROVIDER={gpt_provider.lower()}\n")
env_file.write(f"{api_key_var}={api_key}\n")