Skip to content

fix(cost): price typesafe/jev-1.14.0 - #46594

Merged
klu-berri merged 2 commits into
BerriAI:mainfrom
hyamie:fix/typesafe-jev-1-14-0-price
Oct 15, 2026
Merged

klu-berri merged 2 commits into
BerriAI:mainfrom
hyamie:fix/typesafe-jev-1-14-0-price

Conversation

@hyamie

@hyamie hyamie commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What

Add typesafe/jev-1.14.0 to the cost map (root file and backup), identical to typesafe/jev-1.13.0.

Why

TypeSafe released jev-1.14.0 on 2026-10-14 at the same price as jev-1.13.0: $0.042 per 1M input tokens, output free (https://docs.typesafe.ai/models). Without an entry, every call that names it through the TypeSafe pass-through logs a cost of 0: TypeSafePassthroughLoggingHandler prices from litellm.model_cost["typesafe/<model>"], and a deployment's model_info price is registered under its model id only, so a config-level price does not reach that lookup. The native /v1/systemone route already applies a configured price; the pass-through cannot.

Test

  • python ci_cd/cost_map_guard.py --base <merge-base> --head HEAD --head-ref <branch>: passed (human PR, file checks only); the backup file is byte-identical to the root file.
  • On v1.104.3 with the patched backup loaded (no network, so the bundled map is used), POST /typesafe/v1/systemone with model: jev-1.14.0 logged spend = 1.05e-06 for 25 input tokens (= 25 x 4.2e-08). Without the entry the same call logged 0.

🤖 Generated with Claude Code

https://claude.ai/code/session_016yjaB3cxvivj3cU272Zb1M

Follow-up commit 9c13131

Adds max_input_tokens: 65536 to all four typesafe/jev-* rows (root and backup), since docs.typesafe.ai/models lists a 64k per-request context for both jev-1.13.0 and jev-1.14.0, and extends tests/unit/test_typesafe_model_metadata.py to cover jev-1.14.0 and check the four rows agree on max_input_tokens. Docs follow-up in BerriAI/litellm-docs#2379

TypeSafe released jev-1.14.0 on 2026-10-14 at the same price as jev-1.13.0
($0.042 per 1M input tokens, output free; https://docs.typesafe.ai/models).
Without an entry, calls through the TypeSafe pass-through log a cost of 0:
TypeSafePassthroughLoggingHandler prices from litellm.model_cost["typesafe/<model>"],
and a deployment's model_info price is registered under its model id only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository.

@CLAassistant

CLAassistant commented Oct 15, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
0 out of 2 committers have signed the CLA.

❌ devin-ai-integration[bot]
❌ hyamie
You have signed the CLA already but the status is still pending? Let us recheck it.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T02:57:49.876140Z d6fd401 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codspeed

codspeed Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

⚠️ 1 benchmark spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

✅ 31 untouched benchmarks


Comparing hyamie:fix/typesafe-jev-1-14-0-price (9c13131) with main (6c78089)

Open in CodSpeed

@codecov

codecov Bot commented Oct 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@klu-berri
klu-berri merged commit 9d72bae into BerriAI:main Oct 15, 2026
87 checks passed
mateo-berri added a commit that referenced this pull request Oct 15, 2026
…5734_46594_46596_rc_1_106_0

feat(decisions): backport #45474, #45811, #45734, #46594, and #46596 to rc/1.106.0
Cartofante pushed a commit to CartoDB/litellm that referenced this pull request Oct 19, 2026
* fix(cost): price typesafe/jev-1.14.0

TypeSafe released jev-1.14.0 on 2026-10-14 at the same price as jev-1.13.0
($0.042 per 1M input tokens, output free; https://docs.typesafe.ai/models).
Without an entry, calls through the TypeSafe pass-through log a cost of 0:
TypeSafePassthroughLoggingHandler prices from litellm.model_cost["typesafe/<model>"],
and a deployment's model_info price is registered under its model id only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cost): add max_input_tokens to the typesafe jev rows

---------

Backport of BerriAI#46594 to rc/1.106.0
Cherry-picked from 9d72bae (main)

Co-authored-by: Mike Hyams <241361536+hyamie@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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