Add `openrouter` provider to `orko-providers` crate
Agent orchestration toolkit for Rust (alpha out)
Brought to you by:
samad101
Originally created by: SAMAD101
Add an openrouter preset to orko-providers. OpenAI-compatible — a thin preset over the engine from [#3], same shape as [#5].
https://openrouter.ai/api/v1 (configurable)OPENROUTER_API_KEY, sent as Authorization: Bearer …from_str("openrouter:anthropic/claude-sonnet-4.5") — model ids contain / (and sometimes : suffixes like :free); the parser must split on the first : onlyHTTP-Referer, X-Title). The quirks struct should support extra static headers so the preset (or the user) can set them; don't hardcode values.openrouter(model); env key + base URL resolved conventionallyfrom_str round-trip tests incl. openrouter:vendor/model:free-D warnings clean; builds with --no-default-featuresDepends on [#3].
Originally posted by: Triumph1701
The OpenRouter preset should keep the provider-specific quirks at the preset boundary: configurable base URL and static headers, conventional key resolution, and a parser that splits the qualified model on the first colon only. I’d add round-trip tests for slashed model IDs and :free suffixes, then keep the generic OpenAI-compatible engine independent of the preset.
Originally posted by: SAMAD101
@Triumph1701 hmm thats the plan, currently all the issues are blocked by [#3] , so once that done others will follow
Related
Tickets:
#3Ticket changed by: SAMAD101