Re:Hypermode Model Router Preview – OpenRouter Alternative
by iamtherhino on Thursday May 08, 2025 @01:25PM
(#43928704)
Signups are open: hypermode.com/sign-up
There's a waitlist for our prompt to agent product in the banner. That's a good call to update it to be more clear.
Re:Hypermode Model Router Preview – OpenRouter Alternative
by threeducks on Thursday May 08, 2025 @01:30PM
(#43928753)
Oh, I did not catch that. Sorry!
Re:Hypermode Model Router Preview – OpenRouter Alternative
by iamtherhino on Thursday May 08, 2025 @01:32PM
(#43928798)
Not at all! I'm updating the banner now
Re:Hypermode Model Router Preview – OpenRouter Alternative
by iamtherhino on Thursday May 08, 2025 @04:25PM
(#43930938)
updated our python example too!
Re:Hypermode Model Router Preview – OpenRouter Alternative
by KTibow on Thursday May 08, 2025 @04:32PM
(#43930996)
`post` automatically releases the connection. `with` only makes sense when you use a `requests.Session()`.
Re:Hypermode Model Router Preview – OpenRouter Alternative
by threeducks on Monday May 12, 2025 @01:28AM
(#43959901)
You are right! https://github.com/psf/requests/blob/c65c780849563c891f35ffc...
The post function calls request the request function which uses its own context manager that will call the close function of the connection object.
The following sample (probably) does the same thing and is almost half as short. I have not tested it because there is no signup (EDIT: I was mistaken, there actually is a "signup" behind the login link, which is Google or GitHub login, so the naming makes sense. I confused it with a previously more prominent waitlist link.)