Lurker News

Comments (99) 40 threads

Earlier comments
tobwen#
BTW: It's $5 on a yearly membership and $10 on a monthly one.
throwa3562622 replies#
I recently tried the french provider Eden as a dropin replacement for openrouter. Turns out pi doesnt support them and the devs dont seem to be in a hurry to address this.

My point is, despite everyone using the same openai API format switching to a new router is not completely frictionless.

_joel1 reply#
If only there was some way to quickly write an adapter and PR it.
throwa356262#
If only eraendil cared

    https://github.com/earendil-works/pi/issues/6403
skeledrew1 reply#
> pi doesnt support them

Oh My Pi may have support. But also you can have Pi extend itself with that support. If you're starting from zero, Get ChatGPT or another provider with web chat to bootstrap the extension.
Someone will eventually make a "router bootstrapper" recipe (if there isn't already) so anyone can generate code for a new router specific to their agent.

throwa3562621 reply#
I think the router format needs to be standardised. The openai chat API doesnt work great for routers.

I haven't tested oh-my-pi, maybe it works. Can be a last resort (but I prefer the simplicity of pi).

skeledrew#
Oh I don't mean bootstrap a full router service; just the connection to any. Very simple because every router worth using implements the OpenAI and/or Anthropic API specs. The only thing that's really "custom" about a router that's relevant to base agent functionality is how to fetch and parse the list of models.

A router service too should be fairly simple to setup though, as it's just a map of inference sources. The real work is in the deals struck with all those sources to get tokens priced so they can earn.

robotswantdata#
Build your own LLM gateway
edoceo1 reply#
What about that TrustedRouter project I've seen mentioned on here? Is this similar? (I'm still a noob). Do I even need a router? I just got pi.dev to work.
Oxodao#
For Pi / Opencode, if you have a subscription to one AI service and you're happy with it, you dont't need a router. Router are great to try out a lot of different models from different providers without having to create account everywhere.

For API usage that's a bit different since the use case can vary, but since you have to tweak your prompts depending on the model anyway I'm not sure it's that good of an idea to rely on a router for these...

Load more comments