innovation64 commited on
Commit
6148ad5
·
verified ·
1 Parent(s): be16c84

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -532,8 +532,10 @@ Tools available: {json.dumps(self.tools_dict, indent=2)}
532
 
533
  Final answer:"""
534
 
535
- # Use the model directly without CodeAgent
536
- response = self.model.generate_text(
 
 
537
  prompt=full_prompt,
538
  system_prompt=self.system_prompt
539
  )
 
532
 
533
  Final answer:"""
534
 
535
+ # FIX: Use the correct method to generate text with OpenAIServerModel
536
+ # The issue is here - the model doesn't have a 'generate_text' method
537
+ # Instead, it should use the 'generate' method
538
+ response = self.model.generate(
539
  prompt=full_prompt,
540
  system_prompt=self.system_prompt
541
  )