Update app.py
Browse files
app.py
CHANGED
|
@@ -170,6 +170,7 @@ If the user is engaging in discussion, try to steer them towards getting in touc
|
|
| 170 |
# messages.extend(results)
|
| 171 |
# else:
|
| 172 |
# done = True
|
|
|
|
| 173 |
|
| 174 |
# try:
|
| 175 |
# response = self.client.chat.completions.create(
|
|
@@ -188,8 +189,9 @@ If the user is engaging in discussion, try to steer them towards getting in touc
|
|
| 188 |
# except Exception as e:
|
| 189 |
# print(f"Error during OpenAI API call: {e}")
|
| 190 |
# return "Sorry, there was an error processing your request. Please check your API key and try again."
|
|
|
|
| 191 |
|
| 192 |
-
|
| 193 |
|
| 194 |
|
| 195 |
|
|
|
|
| 170 |
# messages.extend(results)
|
| 171 |
# else:
|
| 172 |
# done = True
|
| 173 |
+
# return response.choices[0].message.content
|
| 174 |
|
| 175 |
# try:
|
| 176 |
# response = self.client.chat.completions.create(
|
|
|
|
| 189 |
# except Exception as e:
|
| 190 |
# print(f"Error during OpenAI API call: {e}")
|
| 191 |
# return "Sorry, there was an error processing your request. Please check your API key and try again."
|
| 192 |
+
# return response.choices[0].message.content
|
| 193 |
|
| 194 |
+
|
| 195 |
|
| 196 |
|
| 197 |
|