Skip to content

feat: share model catalog discovery across chat, image, video and music - #11

Merged
VickyXAI merged 2 commits into
mainfrom
feat/unified-model-catalog
Oct 26, 2026
Merged

VickyXAI merged 2 commits into
mainfrom
feat/unified-model-catalog

Conversation

@KillerQueen-Z

Copy link
Copy Markdown
Collaborator

Consumers currently maintain separate model-picker lists, so a newly listed gateway model can be missing from a product even when it is available. This adds a pure shared catalog API that discovers chat, image, video and music models from the public gateway response without an ID allowlist.

  • Export parseModelCatalog, normalized catalog types and MODEL_KINDS; preserve gateway price units, filter hidden/unavailable or invalid entries, and handle authoritative duplicate retirements.
  • Export the optional chat-only toRoutingCatalog adapter for live pricing, capacities and availability. Tool support remains based on verified capability evidence; media models never enter LLM routing chains.
  • Keep fetching, refresh intervals, network-specific caches and UI ordering in consumers. Document the existing router total-outage fallback behavior and require consumers to validate a selected model against their active catalog.
  • Correct the stale README statement about GPT-6.1 Sol / DeepSeek V4.1 Flash tool verification and commit rebuilt ESM/types/source map for commit-tarball consumers.

Validation: npm run check passed (164 tests, including 18 catalog cases); the existing 88-request decision snapshot is unchanged. A rebuild leaves committed dist/ unchanged. An independently packed and installed consumer imports the new exports without running build scripts. Read-only Base/Solana catalog checks include GPT-6.1 Sol and all four model categories. No paid inference, trading, deployment or consumer repin was performed.

This PR contains only router-core changes. Franklin web UI changes remain local and can adopt this API after the core revision is reviewed.

KillerQueen-Z and others added 2 commits October 24, 2026 02:10
…ity evidence

toRoutingCatalog marked every configured ID absent from catalog.chat as
unavailable. Against the live catalog that retired openai/o4-mini (listed
without a chat category) and moonshot/kimi-k3 (hidden), both of which the
gateway still serves. unavailableModels now comes only from rows the gateway
explicitly marks available: false, exposed as ModelCatalog.unavailable.

verifiedCapabilities replaced the bundled tool table instead of merging over
it, so one host entry dropped every other model's tool support (70 -> 0 on the
live catalog). It now merges per ID.

The config option existed only for the absence check and is removed. README
no longer tells hosts to reject routed models missing from catalog.chat.
@VickyXAI
VickyXAI merged commit fd6d03d into main Oct 26, 2026
2 checks passed
@VickyXAI
VickyXAI deleted the feat/unified-model-catalog branch October 26, 2026 23:14
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.

2 participants