mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-06 04:23:15 -05:00
read_file and edit_file answered "X.docx is not a text file (43963 bytes)" and gave the model nothing to go on. Make the error typed and let the chat's tool list add the hint. If the chat has a skill for the file type (docx, xlsx, pptx, pdf), the error names it. Otherwise it suggests a script run with the commands tool, with a library for office types, when the chat can run commands. A chat with neither is told that no tool opens the file. The skills are resolved only when a read fails. Assisted-by: Claude Code:claude-sonnet-5-5 Signed-off-by: Ettore Di Giacinto <mudler@localai.io>