by geek_at · 3mo ago · 0 comments
I have a few of them even a smart router called "agents" which will use local models but if it thinks the request might require higher reasoning it's routing to a different model
if (process.env.LOCAL_MODEL {
http('localhost:3000/v1/completions')...
} else {
http('api.openrouter.ai/v1/completions')...
}