Skip to content

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

Open
KillerQueen-Z wants to merge 1 commit into
mainfrom
feat/unified-model-catalog
Open

KillerQueen-Z wants to merge 1 commit 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.

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