Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -223,7 +223,8 @@ class BasicAgent:
|
|
223 |
|
224 |
|
225 |
def _ask_gpt4o(self, text: str) -> str:
|
226 |
-
self.agent.chat(text)
|
|
|
227 |
'''
|
228 |
messages = [{"role": "user", "content": text}]
|
229 |
response = self.client.chat.completions.create(
|
|
|
223 |
|
224 |
|
225 |
def _ask_gpt4o(self, text: str) -> str:
|
226 |
+
response = self.agent.chat(text)
|
227 |
+
return risposta = str(response)
|
228 |
'''
|
229 |
messages = [{"role": "user", "content": text}]
|
230 |
response = self.client.chat.completions.create(
|