3 ms·
Nice. Do you have an ungolfed version? I was going to ask my LLM to make one.
by gabrielsroka 3mo ago
Nice.
Do you have an ungolfed version? I was going to ask my LLM to make one.
- tosh 3mo agohere is a more expanded transliteration: https://gist.github.com/tosh/61aca9ffa9ea115fa4df332407d7a9a9 https://gist.github.com/tosh/61aca9ffa9ea115fa4df332407d7a9a...
- gabrielsroka 3mo agoty. a little easier to read. i'd move the headers out of the loop (u can prolly just hard-code it), and move context_usage to inside the if (and maybe hard-code it, too)
- tosh 3mo agooh right, good point @ move outside of the loop (or move directly into the Request), ty!
- gabrielsroka 3mo agoTy, i commented on both gists.
- tosh 3mo agoty for looking into it, i like your http.client take (still stdlib, keeps connection open)
- gabrielsroka 3mo agoTy, did u test it? I can't