You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that after migrating over from the openai library to openrouter sdk I cannot seem to give it a provider routing anymore.
The README lists a provider key (which I assume is where my provider information would go such as limiting a myself to only one provider). This is the example code:
Thanks @mattapperson . However how would I use it? As far as I can tell ChatGenerationParams still does not contain this field and as such the README section is still showcasing what seems to be a missing field.
Activity
mattapperson commentedon Nov 18, 2025
So sorry, this is a bug that I will be resolving hopefully today
mattapperson commentedon Nov 18, 2025
This is now fixed in v0.1.13
ProjectInfinity commentedon Nov 18, 2025
Thanks @mattapperson . However how would I use it? As far as I can tell ChatGenerationParams still does not contain this field and as such the README section is still showcasing what seems to be a missing field.
dehli commentedon Dec 3, 2025
Just ran into this as well - looks like
provideris missing from theChatGenerationParamstypetypescript-sdk/src/models/chatgenerationparams.ts
Lines 78 to 108 in 47a2ce2
dpchamps commentedon Dec 3, 2025
This doesn't appear to be fixed as of
0.2.9remitoffoli commentedon Dec 11, 2025
Yep, quite confusing as the code doesn't match the documentation at all:
https://openrouter.ai/docs/guides/routing/provider-selection
Maybe this should be re-opened?
mattapperson commentedon Dec 11, 2025
Sorry, it does seem we quickly regressed here, my apologies. We will prioritize fixing this ASAP
BlackGlory commentedon Dec 12, 2025
15 years of experience, 300 vibe-coded commits, and it's still worse than the client I casually hacked together.
The industry is cooked lmao.
mattapperson commentedon Dec 16, 2025
Sorry for the delay in getting back to this thread, but this issue should be fixed now. Leaving this open though for now to keep an eye on it.
yogasanas commentedon Jan 22, 2026
Hey all! This should be fixed now! Thanks for the patience.