mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-10 06:45:28 -05:00
`openapi.json` file is cleared when script fails to retrieve api spec from the server. This shouldn't happen and it breaks building docker containers. ### Changes 🏗️ Use temp file during generation to prevent actual file clearing on failure. ### Checklist 📋 #### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: - [x] Spec file doesn't get cleared on failure - [x] Spec file is correctly generated - [x] Works when frontend is run in docker container