Claude 3.5 seems to have been trained before replit updated object-storage SDK. As a result, they completely butcher anything to do with replit persistent file storage. I lost a day figuring this out. The solution is to:
Copy the SDK page
paste it into the chat, BUT it falls out of the context window SO fast so this is only good for a little thing
so rather copy centralise file ops in one script, then get gpt to rewrite it in chatGPT
thereafter watch for assistant ever touching that file handling script cos it WILL bring back fs, and next thing you know ur files don’t persist in produciton
The answer @mark is no I just found out. The good news is in their documentation you can copy it as a markdown for LLM’s now. Not sure when they started doing it, but it’s at least something.
Once I added it in the prompt, it started working right away. Of note, I already had prompted the BucketID and the folder I wanted it in, so for full success I would do all the above.
I use replit object storage, but you have to be very specific about this. If you just call it object storage, it tries to implement AWS, which is super bizarre.
I’m trying to build out opengraph social previews for my product pages and I needed to pre-generate the images so this was something I needed to do, it’s about 10gb of images.