Zihao Wang commited on
Commit
f0d180c
1 Parent(s): a57c21c
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -117,7 +117,7 @@ Use `\n\n` to split the answer into several paragraphs.
117
  Just respond to the instruction directly. DO NOT add additional explanations or introducement in the answer unless you are asked to.
118
  '''
119
  # openai_client = OpenAI(api_key=openai.api_key)
120
- openai_client = OpenAI(api_key = os.environ.get("OPENAI_API_KEY"))
121
  draft = openai_client.chat.completions.create(
122
  model="gpt-3.5-turbo",
123
  messages=[
@@ -154,7 +154,7 @@ Try to make the query as relevant as possible to the last few sentences in the c
154
  Just output the query directly. DO NOT add additional explanations or introducement in the answer unless you are asked to.
155
  '''
156
  # openai_client = OpenAI(api_key = openai.api_key)
157
- openai_client = OpenAI(api_key = os.environ.get("OPENAI_API_KEY"))
158
  query = openai_client.chat.completions.create(
159
  model="gpt-3.5-turbo",
160
  messages=[
@@ -201,7 +201,7 @@ Split the paragraphs with `\n\n` characters.
201
  Just output the revised answer directly. DO NOT add additional explanations or annoucement in the revised answer unless you are asked to.
202
  '''
203
  # openai_client = OpenAI(api_key = openai.api_key)
204
- openai_client = OpenAI(api_key = os.environ.get("OPENAI_API_KEY"))
205
  revised_answer = openai_client.chat.completions.create(
206
  model="gpt-3.5-turbo",
207
  messages=[
 
117
  Just respond to the instruction directly. DO NOT add additional explanations or introducement in the answer unless you are asked to.
118
  '''
119
  # openai_client = OpenAI(api_key=openai.api_key)
120
+ openai_client = OpenAI(api_key = os.getenv('OPENAI_API_KEY'))
121
  draft = openai_client.chat.completions.create(
122
  model="gpt-3.5-turbo",
123
  messages=[
 
154
  Just output the query directly. DO NOT add additional explanations or introducement in the answer unless you are asked to.
155
  '''
156
  # openai_client = OpenAI(api_key = openai.api_key)
157
+ openai_client = OpenAI(api_key = os.getenv('OPENAI_API_KEY'))
158
  query = openai_client.chat.completions.create(
159
  model="gpt-3.5-turbo",
160
  messages=[
 
201
  Just output the revised answer directly. DO NOT add additional explanations or annoucement in the revised answer unless you are asked to.
202
  '''
203
  # openai_client = OpenAI(api_key = openai.api_key)
204
+ openai_client = OpenAI(api_key = os.getenv('OPENAI_API_KEY'))
205
  revised_answer = openai_client.chat.completions.create(
206
  model="gpt-3.5-turbo",
207
  messages=[