Skip to content

Exclude private providers from public model datacenters - #928

Closed
Gajesh2007 wants to merge 2 commits into
masterfrom
fix/public-model-countries
Closed

Gajesh2007 wants to merge 2 commits into
masterfrom
fix/public-model-countries

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

A private-only provider could add its country to OpenRouter's public model datacenters even though public model counts and dispatch excluded that provider. With a public provider in the US and a private provider in India, ModelCountryCodes returned [IN US].

Share the existing ListModels provider gate with ModelCountryCodes. Both public views now exclude private-only, offline, untrusted, below-floor and private-text-ineligible providers under the same locks. Per-model catalog checks and country normalization/sorting remain unchanged. Owner self-route and inventory-oriented snapshots retain their separate policies.

Before:

flowchart TD
  P[Public and private provider inventory] --> L[ListModels gate includes PrivateOnly]
  P --> C[Separate country gate omits PrivateOnly]
  L --> M[Public model count excludes private node]
  C --> D[Datacenters incorrectly includes private country]
Loading

After:

flowchart TD
  P[Public and private provider inventory] --> G[publicModelProviderEligibleLocked]
  G --> L[ListModels plus per-model catalog gate]
  G --> C[ModelCountryCodes plus per-model catalog gate]
  L --> M[Same public model count]
  C --> D[Only public eligible countries, sorted]
  O[Owner self-route request] --> S[Existing separate owner policy]
Loading

Validation: the regression fails on master with [IN US] and passes after the fix, including the all-private case returning no countries. Full registry and routing-simulation race suites pass (24.527s / 3.721s). Documentation checks pass for all 278 pages. No dependency, model default, routing policy or deployment change.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@vercel

vercel Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Sep 12, 2026 12:02am UTC
d-inference-console-ui-dev Ready Ready Preview Sep 12, 2026 12:02am UTC
d-inference-landing Ready Ready Preview Sep 12, 2026 12:02am UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-12T00:05:25.997745Z 1cd9fb4 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Gajesh2007

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 1cd9fb4630

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Gajesh2007

Copy link
Copy Markdown
Member Author

Consolidated into #1056 for review and merge after #1094, #1095 and #1096. #1056 contains this branch's exact head (1cd9fb46303d8ab709cb0eb75620e5978319d431), including its reviewed fixes, with implementations and regressions reconciled into the coordinator subsystem owners. Closing the component PR to collapse the stack; its branch, commits and review history are retained. Follow #1056 for combined validation and merge status.

This branch had an error being deployed

1 failed and 3 active deployments
Preview – d-inference — 1cd9fb46 Deployed Sep 12, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 1cd9fb46 Deployed Sep 12, 2026 by vercel[bot]
Preview – d-inference-landing — 1cd9fb46 Deployed Sep 12, 2026 by vercel[bot]
benchmarks — 1cd9fb46 Deployed Sep 12, 2026 by Gajesh2007 via E2E Benchmarks #1000
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