Hacker News new | ask | show | jobs
by faitswulff 64 days ago
For readers wondering, OpenRouter isn’t capable of caching as effectively as DeepSeek is because they will, for instance, switch inference providers in the middle of a session.
2 comments

The way I use openrouter is I find a model/provider combination I like then pin all requests for that model to that single provider.
If you disable all other providers but DeepSeek in your OpenRouter guardrails, is that effectively the same thing?
Sure but you still pay only OpenRouter :)
Interestingly, OpenRouter will serve inference at cost for a lot of models.
No? They charge 5.5% (I believe) on every top-up. Which is the equivalent of charging you 5.5% on every request.
Ah, so that's where the profit comes from. Very payment-processor like move, makes sense that Stripe picked them up.
How do you do this?
provider: { order: ['deepinfra/turbo'], allowFallbacks: false, },

https://openrouter.ai/docs/guides/routing/provider-selection

What harnesses are capable of doing this provider pinning when doing requests on openrouter? Can DeepSeek harness (dsh) do it? Or opencode etc

I stopped using opencode because it has some issues with caching, so I suppose it doesn't do this

Deepseek plugins* all the way down. It should be easy to add support for this.

Using this interesting framework called Cordis I've recent discovered.

Open code and pi can do it. Unironically, I let Claude configure these things for me.
What pests said. And you can make a preset and pass "model": "@preset/deep-seek"
How can they? If you use openrouter Deepseek fine but can’t you select the model direct from Deepseek you’re basically getting api access models that way.