Skip to content

Add TrustedRouter as a built-in provider - #3760

Open
jperla wants to merge 1 commit into
chatboxai:mainfrom
jperla:add-trustedrouter-custom-provider-docs
Open

Add TrustedRouter as a built-in provider#3760
jperla wants to merge 1 commit into
chatboxai:mainfrom
jperla:add-trustedrouter-custom-provider-docs

Conversation

@jperla

@jperla jperla commented Jun 12, 2026

Copy link
Copy Markdown

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) and https://api.trustedrouter.com/v1 host
  • src/shared/providers/definitions/models/trustedrouter.ts — OpenAICompatible model class
  • registered in ModelProviderEnum, 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)
  • provider icon PNG (108×108, matching existing icons)

Verified: provider + model-registry vitest suites pass (72 passed, including the models.dev contract test), biome lint clean on the new files, and tsc reports no errors in the changed files.

This reworks the earlier docs-only version of this PR into a code integration.

@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e8b26924-9e58-453e-975e-e40894bf62f9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jperla

jperla commented Jun 16, 2026

Copy link
Copy Markdown
Author

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?

@jperla

jperla commented Jul 2, 2026

Copy link
Copy Markdown
Author

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.

@jperla

jperla commented Jul 9, 2026

Copy link
Copy Markdown
Author

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.

@jperla
jperla force-pushed the add-trustedrouter-custom-provider-docs branch from c64f751 to d0ca2e8 Compare August 8, 2026 20:03
@jperla jperla changed the title Document TrustedRouter OpenAI-compatible setup Add TrustedRouter as a built-in provider Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant