I built a router that lets you route between local and cloud models. Link in my profile.
Yeah, I also built my own "router" for this:
if (process.env.LOCAL_MODEL { http('localhost:3000/v1/completions')... } else { http('api.openrouter.ai/v1/completions')... }
Yeah, I also built my own "router" for this: