Add retries only after the request knows what it already did. Free model endpoints and free servers fail in the worst place: after the work may have run but before you receive the response. Disclosure: This article was prepared as part of MonkeyCode's product outreach.

Source: [Dev.to](https://dev.to/hackrs_6393/make-free-model-requests-idempotent-before-you-add-retries-3mi2)

Sponsored