artintel235 commited on
Commit
ed36630
·
verified ·
1 Parent(s): bf9e2e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -114,7 +114,7 @@ def get_available_models(api_key):
114
 
115
  if __name__ == "__main__":
116
  # Replace "YOUR_API_KEY" with your actual OpenAI API key, or get it from environment variables
117
- api_key = os.environ.get("OPENAI_API_KEY")
118
  if not api_key:
119
  print("Please set the OPENAI_API_KEY environment variable or replace 'YOUR_API_KEY' with your key.")
120
  else:
 
114
 
115
  if __name__ == "__main__":
116
  # Replace "YOUR_API_KEY" with your actual OpenAI API key, or get it from environment variables
117
+ api_key = os.environ.get("API_KEY")
118
  if not api_key:
119
  print("Please set the OPENAI_API_KEY environment variable or replace 'YOUR_API_KEY' with your key.")
120
  else: