-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Issue: write_to_file tool truncates large files #1921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What model are you using through which provider @benzntech ? Do you have clear repro steps you could provide please? |
Will all the provider same issue @hannesrudolph |
I frequently encounter the same issue when using the Gemini 2.0 Flash 001 model. I ask RooCode to scrape data from the web, which it does nicely. Then I ask it to write the scraped data to a markdown file, and that's when I get the same error message. Note that the content here, for instance, isn't actually 717 lines, only 293. What's weird:
|
@tobalsan The reason for this is that this model does not adhere to tool calls consistently. It works one call and then not the next and then often keeps trying the same thing over and over. That being said, we made some changes to our system prompt which have increased the success rate of tool use for this specific model. |
I think the write_to_file tool should first write to a temporary file and then renaming it over the original. |
Originally posted by @benzntech in #1559
The text was updated successfully, but these errors were encountered: