Merged
Size
M
Change Breakdown
Bug Fix65%
Testing35%
#3281fix(llm-catalog): refresh default model pricing on sync

LLM catalog pricing synchronization fixed

The LLM catalog synchronization pipeline now completely rebuilds default model pricing tiers and clears stale context limits, ensuring accurate billing and configuration.

Billing calculations and context window limits for default LLM models are guaranteed to match the upstream catalog after a synchronization.

Previously, updates to model pricing tiers might not sync correctly, and removed context limits could leave stale data behind. Now, the synchronization process completely rebuilds pricing tiers from scratch during every sync. It also actively clears out context windows and base model names if they are removed from the source definitions.

This guarantees that the database always reflects the exact state of the catalog, preventing inaccurate billing or incorrect model capability checks. The fixes were applied to the llm-model-catalog internal package, accompanied by a new, strict test execution pipeline.

View Original GitHub Description
  • Rebuild llm_pricing_tiers and llm_prices in syncLlmCatalog for source=default
  • Add vitest config, sync regression tests, and pin vitest 3.1.4
  • Update pnpm-lock.yaml for the new devDependency
© 2026 · via Gitpulse