sango07 commited on
Commit
69fa4ec
·
verified ·
1 Parent(s): 1429c72

Update test_case_generator.py

Browse files
Files changed (1) hide show
  1. test_case_generator.py +1 -1
test_case_generator.py CHANGED
@@ -10,7 +10,7 @@ class TestCaseGenerator:
10
  def __init__(self, api_key=None):
11
  # Allow API key to be passed in or read from environment
12
  if api_key:
13
- os.environ["OPENAI_API_KEY"] = api_key
14
 
15
  # Predefined question types
16
  self.available_question_types = [
 
10
  def __init__(self, api_key=None):
11
  # Allow API key to be passed in or read from environment
12
  if api_key:
13
+ os.environ["OPENAI_API_KEY"] = os.getenv('OPENAI_API_KEY')
14
 
15
  # Predefined question types
16
  self.available_question_types = [