Remix.run Logo
gabrielsroka a day ago

Nice.

Do you have an ungolfed version? I was going to ask my LLM to make one.

tosh a day ago | parent [-]

here is a more expanded transliteration:

https://gist.github.com/tosh/61aca9ffa9ea115fa4df332407d7a9a...

gabrielsroka a day ago | parent [-]

ty. 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 a day ago | parent [-]

oh right, good point @ move outside of the loop (or move directly into the Request), ty!

gabrielsroka 19 hours ago | parent [-]

Ty, i commented on both gists.

tosh 13 hours ago | parent [-]

ty for looking into it, i like your http.client take (still stdlib, keeps connection open)