> Acting as an expert Go developer, write a RoundTripper that retries failed HTTP requests, both GET and POST ones.
GPT-4 takes a few tries but usually takes the POST part into account, saving the body for new retries and whatnot. Phind and other LLMs (never tried Gemini) fail as they forget about saving the body for POST requests. Claude Opus got it right every time I asked the question[2]; I wouldn't use the code it spit out without editing it, but it would be enough for me to learn the concepts and write a proper implementation.
It's a shame Claude.ai isn't available in Brazil, which I assume is because of our privacy laws, because this could easily go head to head with GPT-4 from my early tests.
[1] https://news.ycombinator.com/item?id=39473137
[2] https://paste.sr.ht/~jamesponddotco/011f4261a1de6ee922ffa5e4...