aliss77777 commited on
Commit
ebf11d7
1 Parent(s): 05ecb02

updating OpenAPI environ vars method

Browse files
Files changed (1) hide show
  1. helper_functions.py +2 -1
helper_functions.py CHANGED
@@ -28,7 +28,8 @@ pf_api_url = "https://graphql.probablefutures.org"
28
  #pf_token_url = "https://probablefutures.us.auth0.com/oauth/token"
29
 
30
  load_dotenv()
31
- client = OpenAI()
 
32
 
33
  model = "gpt-4o" #"gpt-4-0125-preview" # gpt-4 #gpt-3.5-turbo-16k
34
 
 
28
  #pf_token_url = "https://probablefutures.us.auth0.com/oauth/token"
29
 
30
  load_dotenv()
31
+ api_key = os.environ.get("OPENAI_API_KEY")
32
+ client = OpenAI(api_key=api_key)
33
 
34
  model = "gpt-4o" #"gpt-4-0125-preview" # gpt-4 #gpt-3.5-turbo-16k
35