agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

Generated files (code and scraped images) show 0 bytes after "OK" response

Open saladinlorenz opened this issue 1 year ago • 0 comments

When using Agent Zero to scrape and download images (such as PNG files) after performing online searches, the agent confirms the download with an "OK" message, but the resulting files have a size of 0 bytes in the working directory. This issue seems to affect both code-generated files and downloaded images from scraped content.

Steps to reproduce:

Request Agent Zero to scrape and download an image from a web search. The response shows "OK", confirming the download. Upon checking the working directory, the file is present but has a size of 0 bytes. The same issue occurs with code file generation, where the file appears in the directory but is empty. Expected behavior: The downloaded or generated files should contain the scraped data or code as expected, rather than being empty.

Context:

Agent Zero version: [v0.6.5] System configuration: [win10, Docker OK ] Additional note: I am using the Perplexity model via the OpenRouter API, and the online search functionality works fine for fetching information.

saladinlorenz avatar Sep 19 '24 17:09 saladinlorenz