Skip to content

fix(pricing): flag Pro-subscription Ollama Cloud models in model picker - #604

Merged
edenreich merged 1 commit into
mainfrom
fix/ollama-cloud-pro-pricing-590
Jun 5, 2026
Merged

edenreich merged 1 commit into
mainfrom
fix/ollama-cloud-pro-pricing-590

Conversation

@edenreich

@edenreich edenreich commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #590.

Ollama Cloud models that require a paid Pro subscription were all labelled free in the model picker, because the label was derived purely from per-token price ($0/$0). Starting a chat with one then failed with an API error ("only available for pro users"). The pricing display was misleading.

This adds an explicit, config-overridable Pro axis (orthogonal to price) and surfaces three distinct categories in the picker.

Changes

  • config/pricing.go — RequiresPro bool on ModelPricing + CustomPricing; flag ollama_cloud/deepseek-v4-pro and -flash by default.
  • internal/domain/pricing.go — RequiresPro(model) on the PricingService interface + shared FormatModelPricingLabel helper (composes the marker, suppresses the misleading "free").
  • internal/services/pricing_service.go — resolveRequiresPro (custom→default precedence) + RequiresPro impl; FormatModelPricing stays price-only.
  • internal/ui/components/model_selection_view.go — filter tabs [1] All [2] Free [3] Paid [4] Pro (renamed Proprietary→Paid), key 4, isModelPro, Free now excludes Pro, disjoint filter buckets, pro subscription row marker.
  • internal/ui/autocomplete/autocomplete.go — /model suggestions show pro subscription.
  • Tests — pricing_service_test.go (RequiresPro + default-data guard + label helper); new model_selection_view_test.go (filter buckets + suffix + the bug-fix assertion).
  • tests/mocks/domain/fake_pricing_service.go — regenerated via task mocks:generate.
  • README.md — documents the three categories and the requires_pro override caveat.

Picker now renders

ollama_cloud/deepseek-v4-pro   (1M, pro subscription)
ollama_cloud/deepseek-v4-flash (1M, pro subscription)
ollama_cloud/deepseek-v3.2     (128K, free)
deepseek/deepseek-v4-pro       (1M, $1.74/$3.48 per MTok)

Notes

  • Why hardcoded + overridable: Ollama publishes no stable per-model tier badge (Pro = "access to larger, more powerful models" + higher limits), so the gated set is maintainer-curated data, modelled exactly like the existing pricing. Expanding it later is just flipping RequiresPro: true in defaults or via custom_prices.
  • Cross-repo impact: none — CLI-only (no openapi.yaml/SDK/operator changes).
  • A [DOCS] follow-up will be filed against inference-gateway/docs for the requires_pro config field and the model-view categories.

Verification

task fmt ✓ · task test (full suite) ✓ · task lint (0 issues) ✓ · task build ✓

Ollama Cloud models that require a paid Pro subscription were all
labelled "free" in the model picker, because the label was derived
purely from per-token price ($0/$0). Starting a chat with one then
failed with an API error.

Add a config-overridable RequiresPro flag (orthogonal to price) on the
pricing data, a RequiresPro accessor on PricingService, a "[4] Pro"
filter tab alongside renamed "[3] Paid", and a "pro subscription" row
marker (in the picker and /model autocomplete) that suppresses the
misleading "free". deepseek-v4-pro and deepseek-v4-flash are flagged by
default; users can override via custom_prices.

Closes #590
@edenreich
edenreich requested a review from a team as a code owner June 5, 2026 12:12
@edenreich
edenreich merged commit 5ec0298 into main Jun 5, 2026
@edenreich
edenreich deleted the fix/ollama-cloud-pro-pricing-590 branch June 5, 2026 12:17
inference-gateway-releaser Bot pushed a commit that referenced this pull request Jun 5, 2026
## [0.118.0](v0.117.1...v0.118.0) (2026-06-05)

### 🚀 Features

* add file explorer panel with tree view, preview, and fuzzy finder ([#589](#589)) ([2b73fcc](2b73fcc)), closes [#588](#588)
* **cli:** adopt fang for styled help, errors, version and completions ([#592](#592)) ([b7f649e](b7f649e))
* **tui:** animate loading states and modernise progress/cursor styling ([#594](#594)) ([06057d7](06057d7))
* **tui:** drive diff colours from the active theme ([#598](#598)) ([f279c1c](f279c1c))
* modernize diff display and migrate Charm UI stack to v2 ([#576](#576)) ([6bf8ac6](6bf8ac6))
* **tui:** rebuild GitHub Action setup wizard with huh forms ([#597](#597)) ([c875e84](c875e84))
* theme collapsed tool result previews ([#603](#603)) ([ffc2ee9](ffc2ee9))

### 🐛 Bug Fixes

* **pricing:** flag Pro-subscription Ollama Cloud models in model picker ([#604](#604)) ([5ec0298](5ec0298))
* **tools:** make bash whitelist shell-aware to fix benign-command rejections ([#581](#581)) ([#605](#605)) ([6119f2a](6119f2a))

### ♻️ Code Refactoring

* **tui:** migrate theme selector to bubbles/v2/list ([#596](#596)) ([a46079c](a46079c))
* move git branch indicator to input view border ([#602](#602)) ([7132237](7132237))
* remove redundant comment ([8e3210d](8e3210d))
* **tui:** render help bar with bubbles/v2/help ([#595](#595)) ([5aed140](5aed140))
* **cli:** render list commands with native lipgloss tables ([#593](#593)) ([28a0e55](28a0e55))
* **config:** replace bespoke config commands with generic get/set ([#601](#601)) ([c80321a](c80321a)), closes [#600](#600)
* separate git branch into own status bar row ([#591](#591)) ([9afbeb4](9afbeb4))

### 💄 Styles

* standardize log message capitalization ([e8ae466](e8ae466))

### 🔧 Build System

* **deps:** bump modernc.org/sqlite from 1.50.1 to 1.51.0 in the gomod group ([#584](#584)) ([908cfc4](908cfc4))
* **deps:** bump the github-actions group with 3 updates ([#585](#585)) ([a14de3e](a14de3e))
* **deps:** upgrade fang to charm.land/fang/v2 v2.0.1 ([d1b861f](d1b861f))

### 👷 CI/CD

* centralize claude.yml via reusable workflow ([#583](#583)) ([9a6839d](9a6839d))
* replace Nix build check with adl-cli recompute pattern ([#586](#586)) ([9c5f7cc](9c5f7cc)), closes [#585](#585) [#585](#585) [#585](#585)

### 🧹 Maintenance

* **deps:** bump claude-code 2.1.148 -> 2.1.158 ([#582](#582)) ([5e8d0b5](5e8d0b5))
* **deps:** bump infer CLI v0.117.0 -> v0.117.1, infer-action v0.9.1 -> v0.11.1 ([#580](#580)) ([90ddcf3](90ddcf3))
* **deps:** bump infer-action v0.11.1 -> v0.11.2 ([#587](#587)) ([56f2df8](56f2df8))
* regenerate keybindings from earlier features ([ff09192](ff09192))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.118.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Ollama cloud is not free all the time, the pricing display is misleading

1 participant