fix(env-template): fixing togetherai api key naming in env template

This commit is contained in:
Krrish Dholakia 2023-10-10 18:43:42 -07:00
parent 65364713b9
commit 1b88868f2c
5 changed files with 1 additions and 4 deletions

View file

@ -61,11 +61,8 @@ def load_config():
os.makedirs(config_dir, exist_ok=True)
# Copying the file using shutil.copy
shutil.copy(default_config_path, user_config_path)
print(f"user_config_path: {user_config_path}")
print(f"os path is file: {os.path.isfile(user_config_path)}")
# As the .env file is typically much simpler in structure, we use load_dotenv here directly
load_dotenv(dotenv_path=user_config_path)
print(f"together ai api key: {os.getenv('TOGETHERAI_API_KEY')}")
except Exception as e:
traceback.print_exc()
pass