Skip to content

Commit

Permalink
Add env vars for OpenAI models
Browse files Browse the repository at this point in the history
  • Loading branch information
pm3310 committed Feb 19, 2024
1 parent a6fd9e5 commit 5a3dbc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sagify/commands/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,9 @@ def start_local_gateway(image, dockerfile_dir, platform):
logger.info(ASCII_LOGO)
environment_vars = {
'OPENAI_API_KEY': os.environ.get('OPENAI_API_KEY'),
'OPENAI_CHAT_COMPLETIONS_MODEL': os.environ.get('OPENAI_CHAT_COMPLETIONS_MODEL'),
'OPENAI_EMBEDDINGS_MODEL': os.environ.get('OPENAI_EMBEDDINGS_MODEL'),
'OPENAI_IMAGE_CREATION_MODEL': os.environ.get('OPENAI_IMAGE_CREATION_MODEL'),
'AWS_ACCESS_KEY_ID': os.environ.get('AWS_ACCESS_KEY_ID'),
'AWS_SECRET_ACCESS_KEY': os.environ.get('AWS_SECRET_ACCESS_KEY'),
'AWS_REGION_NAME': os.environ.get('AWS_REGION_NAME'),
Expand Down

0 comments on commit 5a3dbc1

Please sign in to comment.