Duke-911 commited on
Commit
658fc52
·
1 Parent(s): 97a1ad2

Update TofuAgent to use complete method for response generation

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ class TofuAgent:
20
  print(f"Agent received question (first 50 chars): {question[:50]}...")
21
  try:
22
  # Use the llm to generate an answer
23
- response = llm.generate(question)
24
  print(f"Agent generated response: {response}")
25
  return response
26
  except Exception as e:
 
20
  print(f"Agent received question (first 50 chars): {question[:50]}...")
21
  try:
22
  # Use the llm to generate an answer
23
+ response = llm.complete(question)
24
  print(f"Agent generated response: {response}")
25
  return response
26
  except Exception as e: