GattoNero commited on
Commit
e4c03b4
·
verified ·
1 Parent(s): a344527

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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(