Add TrustedRouter as a built-in provider - #3760
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Checking in on this docs PR. The checks look clean from my side. Is there anything else you would want changed before this can move forward? |
|
Friendly follow-up on this docs PR. The checks look clean from my side; happy to adjust wording or placement if there is a preferred format for OpenAI-compatible providers. |
|
Still current against main. Happy to adjust to your docs conventions — shorter, different placement, or generalized to a custom-provider example. Quick turnaround on any feedback. |
c64f751 to
d0ca2e8
Compare
Adds TrustedRouter (attested OpenAI-compatible router) as a built-in provider, following the same shape as the OpenRouter/Groq definitions:
src/shared/providers/definitions/trustedrouter.ts— provider definition with router-alias curated models (trustedrouter/auto,zdr,e2e,cheap) andhttps://api.trustedrouter.com/v1hostsrc/shared/providers/definitions/models/trustedrouter.ts— OpenAICompatible model classModelProviderEnum, the provider index,aiProviderNameHash, the provider menu list, and the models.dev provider mapping (TrustedRouter is listed on models.dev, so remote model listing works)Verified: provider + model-registry vitest suites pass (72 passed, including the models.dev contract test),
biome lintclean on the new files, andtscreports no errors in the changed files.This reworks the earlier docs-only version of this PR into a code integration.