Skip to content

feat(ox-core): add data-driven model catalog and tier profiles - #980

Merged
hakula139 merged 3 commits into
mainfrom
feat/model-catalog-profiles
Dec 1, 2026
Merged

hakula139 merged 3 commits into
mainfrom
feat/model-catalog-profiles

Conversation

@hakula139

Copy link
Copy Markdown
Member

Summary

  • Bundle a data-driven model catalog in crates/ox-core/catalog/models.toml via include_str!, dogfooding the same TOML schema users can load and merge for overrides or extensions.
  • Add crates/ox-core/src/catalog.rs with ModelTier (Flagship, Standard, Mini), CatalogModel, and ModelCatalog (builtin, from_toml, load_file, merge, get, models, by_tier, and resolve_tier).
  • Add profiles: BTreeMap<String, String> to Config in crates/ox-core/src/config.rs for tier-to-model overrides.
  • Document the catalog TOML schema and tier profiles in docs/reference/models.md and link it from docs/README.md.

Test plan

  • nix develop -c run-hooks (all hooks including clippy, rustfmt, cspell, dprint, markdownlint-cli2, taplo passed)
  • nix develop -c cargo doc --no-deps (0 warnings)
  • nix develop -c cargo llvm-cov --workspace --show-missing-lines (crates/ox-core/src/catalog.rs: 99.43% lines / 100.00% functions; crates/ox-core/src/config.rs: 100.00% lines; workspace total: 94.85% lines)

Related

@hakula139 hakula139 added this to the v0.2.0-core milestone Dec 1, 2026
@hakula139 hakula139 added enhancement New capability area: client Touches the model API client, authentication, or request wire labels Dec 1, 2026
@hakula139 hakula139 self-assigned this Dec 1, 2026
@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@hakula139
hakula139 merged commit 488eb09 into main Dec 1, 2026
7 checks passed
@hakula139
hakula139 deleted the feat/model-catalog-profiles branch December 1, 2026 11:09
@github-project-automation github-project-automation Bot moved this from Todo to Done in Oxide Code Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: client Touches the model API client, authentication, or request wire enhancement New capability

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Group models into profiles with flagship, standard, and mini tiers Load the model catalog from data

1 participant