ekabaruh commited on
Commit
bbfe866
·
verified ·
1 Parent(s): 6592d10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -39,12 +39,12 @@ class BasicAgent:
39
  FINAL ANSWER: [YOUR FINAL ANSWER]"
40
  """
41
 
42
- def __init__(self, model_name: str = "gpt-4.1", api_key: str = None):
43
  """
44
  Initialize the BasicAgent with the specified LLM.
45
 
46
  Args:
47
- model_name: The name of the model to use (defaults to gpt-4.1)
48
  api_key: OpenAI API key (defaults to environment variable)
49
  """
50
  # Use the provided API key or fall back to the environment variable
@@ -221,7 +221,7 @@ class BasicAgent:
221
  formatted_response += f"\n\nFINAL ANSWER: {final_answer}"
222
 
223
  print(f"Agent returning answer with final part: {final_answer}")
224
- return formatted_response
225
  except Exception as e:
226
  print(f"Error running agent workflow: {e}")
227
  # Fallback response
 
39
  FINAL ANSWER: [YOUR FINAL ANSWER]"
40
  """
41
 
42
+ def __init__(self, model_name: str = "gpt-3.5-turbo", api_key: str = None):
43
  """
44
  Initialize the BasicAgent with the specified LLM.
45
 
46
  Args:
47
+ model_name: The name of the model to use (defaults to gpt-3.5-turbo)
48
  api_key: OpenAI API key (defaults to environment variable)
49
  """
50
  # Use the provided API key or fall back to the environment variable
 
221
  formatted_response += f"\n\nFINAL ANSWER: {final_answer}"
222
 
223
  print(f"Agent returning answer with final part: {final_answer}")
224
+ return final_answer
225
  except Exception as e:
226
  print(f"Error running agent workflow: {e}")
227
  # Fallback response