Skip to content

feature: render RFT promo discount in prime train models#584

Merged
JannikSt merged 3 commits intomainfrom
feature/rft-promo-discount-display
Apr 30, 2026
Merged

feature: render RFT promo discount in prime train models#584
JannikSt merged 3 commits intomainfrom
feature/rft-promo-discount-display

Conversation

@JannikSt
Copy link
Copy Markdown
Member

@JannikSt JannikSt commented Apr 30, 2026

Summary

  • prime train models now shows discounted prices alongside originals (struck through), with a FREE chip on 100% off categories
  • Reads new effective_*_price_per_mtok and promo_label fields from /rft/models
  • Falls back to today's rendering when the backend doesn't return promo fields

Note

Low Risk
UI/formatting-only CLI changes with added test coverage and safe fallback when promo fields are absent; minimal impact beyond model listing output.

Overview
Updates the hosted training models API schema to accept effective_*_price_per_mtok and promo_label from /rft/models, and reflects these fields in CLI JSON output/help.

Improves prime train/rl models table rendering to show discounted pricing as original → effective (with strikethrough + FREE for 100% off) and prints any promo labels once below the table. Adds format_promo_price plus targeted tests covering promo rendering, edge cases, label de-duplication, and JSON field presence.

Reviewed by Cursor Bugbot for commit 7dda0a2. Bugbot is set up for automated code reviews on this repo. Configure here.

@JannikSt JannikSt force-pushed the feature/rft-promo-discount-display branch from df7a153 to 59da92d Compare April 30, 2026 05:08
@JannikSt JannikSt merged commit 9c35c0c into main Apr 30, 2026
10 of 12 checks passed
@JannikSt JannikSt deleted the feature/rft-promo-discount-display branch April 30, 2026 06:34
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