Lurker News

Comments (101) 40 threads

Show all comments

Showing thread 14 of 40

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.