jonpreamble commited on
Commit
42d1f1b
·
1 Parent(s): 865337c
Files changed (2) hide show
  1. app.py +2 -3
  2. decider_utils.py +2 -3
app.py CHANGED
@@ -27,9 +27,8 @@ N_COMPLETIONS_WHEN_ELABORATING = 1 # I previously had this set to 3, but that m
27
  MINIMUM_COMPLETION_LENGTH_CHARS_WHEN_ELABORATING = 7
28
 
29
 
30
- openai_client = OpenAI()
31
- openai_client.organization = os.environ.get("OPENAI_ORGANIZATION")
32
- openai_client.api_key = os.environ.get("OPENAI_KEY")
33
 
34
 
35
  def elaborate(
 
27
  MINIMUM_COMPLETION_LENGTH_CHARS_WHEN_ELABORATING = 7
28
 
29
 
30
+ openai_client = OpenAI(organization=os.environ.get("OPENAI_ORGANIZATION"),
31
+ api_key=os.environ.get("OPENAI_KEY"))
 
32
 
33
 
34
  def elaborate(
decider_utils.py CHANGED
@@ -7,9 +7,8 @@ NO = False
7
 
8
  g_decider_utils_dbg_printing = False
9
 
10
- openai_client = OpenAI()
11
- openai_client.organization = os.environ.get("OPENAI_ORGANIZATION")
12
- openai_client.api_key = os.environ.get("OPENAI_KEY")
13
 
14
 
15
  def yesno(question, text, default):
 
7
 
8
  g_decider_utils_dbg_printing = False
9
 
10
+ openai_client = OpenAI(organization=os.environ.get("OPENAI_ORGANIZATION"),
11
+ api_key=os.environ.get("OPENAI_KEY"))
 
12
 
13
 
14
  def yesno(question, text, default):