forked from phoenix/litellm-mirror
fix(env-template): fixing togetherai api key naming in env template
This commit is contained in:
parent
65364713b9
commit
1b88868f2c
5 changed files with 1 additions and 4 deletions
BIN
dist/litellm-0.7.1.dev3-py3-none-any.whl
vendored
Normal file
BIN
dist/litellm-0.7.1.dev3-py3-none-any.whl
vendored
Normal file
Binary file not shown.
BIN
dist/litellm-0.7.1.dev3.tar.gz
vendored
Normal file
BIN
dist/litellm-0.7.1.dev3.tar.gz
vendored
Normal file
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
### KEYS ###
|
||||
# HUGGINGFACE_API_KEY="" # Uncomment to save your Hugging Face API key
|
||||
# OPENAI_API_KEY="" # Uncomment to save your OpenAI API Key
|
||||
# TOGETHER_API_KEY="" # Uncomment to save your TogetherAI API key
|
||||
# TOGETHERAI_API_KEY="" # Uncomment to save your TogetherAI API key
|
||||
# NLP_CLOUD_API_KEY="" # Uncomment to save your NLP Cloud API key
|
||||
# ANTHROPIC_API_KEY="" # Uncomment to save your Anthropic API key
|
||||
|
||||
|
|
Binary file not shown.
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue