sc_ma commited on
Commit
c257198
1 Parent(s): 8cf485a
Files changed (1) hide show
  1. utils/gpt_interaction.py +1 -1
utils/gpt_interaction.py CHANGED
@@ -6,7 +6,7 @@ import logging
6
  log = logging.getLogger(__name__)
7
 
8
  # todo: 将api_key通过函数传入; 需要改很多地方
9
- openai.api_key = os.environ['OPENAI_API_KEY']
10
 
11
  def extract_responses(assistant_message):
12
  # pattern = re.compile(r"f\.write\(r'{1,3}(.*?)'{0,3}\){0,1}$", re.DOTALL)
 
6
  log = logging.getLogger(__name__)
7
 
8
  # todo: 将api_key通过函数传入; 需要改很多地方
9
+ # openai.api_key = os.environ['OPENAI_API_KEY']
10
 
11
  def extract_responses(assistant_message):
12
  # pattern = re.compile(r"f\.write\(r'{1,3}(.*?)'{0,3}\){0,1}$", re.DOTALL)