Skip to content

feat: Show cache input token pricing in models list cli output#350

Merged
blainekasten merged 1 commit intonextfrom
blaine/dx-517-show-cached-input-pricing-in-cli-model-listings
Apr 30, 2026
Merged

feat: Show cache input token pricing in models list cli output#350
blainekasten merged 1 commit intonextfrom
blaine/dx-517-show-cached-input-pricing-in-cli-model-listings

Conversation

@blainekasten
Copy link
Copy Markdown
Contributor

Before After
image image

@Nutlope Nutlope self-requested a review April 29, 2026 21:09
t.add_column(style="dim", no_wrap=True, justify="right", ratio=2)
t.add_column(justify="left", no_wrap=True, ratio=1)
cached = model.pricing.cached_input
if cached is not None and cached > 0:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: could we do this order

input
cached input
output

instead of

cached input
input
output

@blainekasten blainekasten force-pushed the blaine/dx-517-show-cached-input-pricing-in-cli-model-listings branch 2 times, most recently from d61e06d to faedadf Compare April 29, 2026 21:44
@blainekasten blainekasten force-pushed the blaine/dx-517-show-cached-input-pricing-in-cli-model-listings branch from faedadf to 0ddccc3 Compare April 30, 2026 14:55
@blainekasten blainekasten merged commit 1476f70 into next Apr 30, 2026
11 of 13 checks passed
@stainless-app stainless-app Bot mentioned this pull request Apr 30, 2026
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.

3 participants