Avo-k commited on
Commit
0b632f4
1 Parent(s): a8be997

delete coms

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -90,7 +90,6 @@ def chat(
90
 
91
  response = openai.Completion.create(
92
  engine="climateGPT",
93
- # messages=messages,
94
  prompt=to_completion(messages),
95
  temperature=0.2,
96
  stream=True,
@@ -121,7 +120,6 @@ def chat(
121
  log_on_azure(file, logs, share_client)
122
 
123
  for chunk in response:
124
- # if chunk_message := chunk["choices"][0]["delta"].get("content"):
125
  if (chunk_message := chunk["choices"][0].get("text")) and chunk_message != "<|im_end|>":
126
  complete_response += chunk_message
127
  messages[-1]["content"] = complete_response
 
90
 
91
  response = openai.Completion.create(
92
  engine="climateGPT",
 
93
  prompt=to_completion(messages),
94
  temperature=0.2,
95
  stream=True,
 
120
  log_on_azure(file, logs, share_client)
121
 
122
  for chunk in response:
 
123
  if (chunk_message := chunk["choices"][0].get("text")) and chunk_message != "<|im_end|>":
124
  complete_response += chunk_message
125
  messages[-1]["content"] = complete_response