Update app.py
Browse files
app.py
CHANGED
@@ -197,25 +197,7 @@ The Agent has been provided with context on {self.name} in the form of their sum
|
|
197 |
messages.extend(results)
|
198 |
else:
|
199 |
done = True
|
200 |
-
|
201 |
-
# try:
|
202 |
-
# response = self.client.chat.completions.create(
|
203 |
-
# model="meta-llama/llama-3.3-8b-instruct:free",
|
204 |
-
# messages=messages,
|
205 |
-
# tools=tools
|
206 |
-
# )
|
207 |
-
# if response.choices[0].finish_reason == "tool_calls":
|
208 |
-
# message = response.choices[0].message
|
209 |
-
# tool_calls = message.tool_calls
|
210 |
-
# results = self.handle_tool_call(tool_calls)
|
211 |
-
# messages.append(message)
|
212 |
-
# messages.extend(results)
|
213 |
-
# else:
|
214 |
-
# done = True
|
215 |
-
# except Exception as e:
|
216 |
-
# print(f"Error during OpenAI API call: {e}")
|
217 |
-
# return "Sorry, there was an error processing your request. Please check your API key and try again."
|
218 |
-
|
219 |
reply = response.choices[0].message.content
|
220 |
|
221 |
# Evaluate the response
|
|
|
197 |
messages.extend(results)
|
198 |
else:
|
199 |
done = True
|
200 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
reply = response.choices[0].message.content
|
202 |
|
203 |
# Evaluate the response
|