pvanand commited on
Commit
47464fa
1 Parent(s): fbae44c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -84,6 +84,7 @@ def get_api_keys():
84
  logger.info("Loading API keys")
85
  return {
86
  "OPENROUTER_API_KEY": f"sk-or-v1-{os.environ['OPENROUTER_API_KEY']}",
 
87
  }
88
 
89
  api_keys = get_api_keys()
@@ -507,8 +508,7 @@ async def presentation_chat(query: PresentationChatModel, background_tasks: Back
507
  from enum import Enum
508
  import io
509
 
510
-
511
- openai_client = OpenAI()
512
 
513
  class OpenaiTTSModels:
514
  class ModelType(str, Enum):
 
84
  logger.info("Loading API keys")
85
  return {
86
  "OPENROUTER_API_KEY": f"sk-or-v1-{os.environ['OPENROUTER_API_KEY']}",
87
+ "OPENAI_API_KEY": os.environ['OPENAI_API_KEY'],
88
  }
89
 
90
  api_keys = get_api_keys()
 
508
  from enum import Enum
509
  import io
510
 
511
+ openai_client = OpenAI(api_key = os.getenv("OPENAI_API_KEY"))
 
512
 
513
  class OpenaiTTSModels:
514
  class ModelType(str, Enum):