Fixed Docker

- Update Dockerfile, docker-compose
- fixed app instructions not working
- fixed json ouput sanification
- added tests for predictor
This commit is contained in:
2025-09-26 12:45:05 +02:00
parent d8ed299724
commit 3e746cdd45
9 changed files with 170 additions and 88 deletions

View File

@@ -60,8 +60,7 @@ class ToolAgent:
)
prediction = self.predictor.run(inputs)
#output = prediction.content.split("</think>")[-1] # remove thinking steps and reasoning from the final output
output = prediction.content
output = Models.extract_json_str_from_response(prediction.content)
market_data = "\n".join([f"{product.symbol}: {product.price}" for product in market_data])
return f"{market_data}\n{sentiment}\n\n📈 Consiglio finale:\n{output}"