Upload app.py
Browse files
app.py
CHANGED
|
@@ -532,8 +532,10 @@ Tools available: {json.dumps(self.tools_dict, indent=2)}
|
|
| 532 |
|
| 533 |
Final answer:"""
|
| 534 |
|
| 535 |
-
# Use the
|
| 536 |
-
|
|
|
|
|
|
|
| 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 |
)
|