Skip to content

feat: multi-provider pricing and custom rate overrides#101

Open
rajkumarsakthivel wants to merge 3 commits into
mainfrom
fix/multi-model-pricing
Open

feat: multi-provider pricing and custom rate overrides#101
rajkumarsakthivel wants to merge 3 commits into
mainfrom
fix/multi-model-pricing

Conversation

@rajkumarsakthivel

Copy link
Copy Markdown
Member

Summary

  • Added static pricing for 15 models across OpenAI, Google, and Anthropic so savings estimates work for non-Claude users
  • Added pricing.input and pricing.output config overrides in cce.toml for unlisted or custom-priced models
  • Dashboard savings page now shows estimated cost saved, active pricing model, and rates
  • Anthropic pricing still auto-fetches from docs (live data wins over static fallbacks)

Example cce.toml configs:

# Use a known model
[pricing]
model = "gpt-4o"

# Override rates for any model
[pricing]
model = "deepseek-v3"
input = 0.27
output = 1.10

Closes #99

Savings estimates were locked to Anthropic model pricing, showing wrong
numbers for users on GPT-4o, Gemini, etc. Now supports 15 models across
three providers with static fallbacks, and users can override rates via
pricing.input/pricing.output in cce.toml for unlisted models.

Dashboard savings page now shows estimated cost saved with the active
pricing model and rates.

Closes #99
Use TYPE_CHECKING import for Config to satisfy both F821 (undefined name)
and F401 (unused import) rules.
fazleelahhee
fazleelahhee previously approved these changes Jun 11, 2026
@rajkumarsakthivel

Copy link
Copy Markdown
Member Author

Screenshot

Dashboard Savings

New "Est. Cost Saved" card showing $11.18 saved at opus rates. Pricing note below shows active model and rates with config hint.

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.

Pricing/savings calculator assumes Claude model pricing

2 participants