Skip to content

Add Tinker (Thinking Machines) models to model cost map - #43859

Closed
jw-surge wants to merge 1 commit into
BerriAI:mainfrom
jw-surge:add-tinker-models
Closed

jw-surge wants to merge 1 commit into
BerriAI:mainfrom
jw-surge:add-tinker-models

Conversation

@jw-surge

Copy link
Copy Markdown

Summary

Closes #43858.

Adds 31 tinker/* entries (litellm_provider: "tinker") to both model_prices_and_context_window.json and litellm/model_prices_and_context_window_backup.json, sourced from https://tinker-docs.thinkingmachines.ai/tinker/models/.

  • All Tinker training models (Inkling, Inkling-Small, Nemotron 3/3.5, GLM-5.3, Kimi-K2.6, Qwen3/3.5/3.6/3.8, gpt-oss, DeepSeek-V3.1), including the :peft:<ctx> long-context variants
  • The two serverless inference (beta) models: Inkling[-Small]:peft:262144:sampling-nvfp4
  • Pricing mapping: Prefill → input_cost_per_token, Sample → output_cost_per_token, Cached → cache_read_input_token_cost. Training cost ($/M train tokens) has no existing field and is omitted.
  • -Base models use mode: "completion"; others mode: "chat" with supports_reasoning, plus supports_vision / supports_audio_input per the docs' type column.
  • Entries appended textually so the rest of each file is byte-for-byte unchanged.

Notes

  • The docs don't list a separate max output length, so max_output_tokens is set to the context window.
  • No routing/provider code is added; this is cost-map only, as requested in the issue.

Testing

  • Both files parse and are identical.
  • tests/unit/test_utils.py + test_cost_map_guard.py: failures are pre-existing on main (schema check fails on unrelated *_ultrafast keys; wrapper cache tests fail without this change too).

🤖 Generated with Claude Code

Closes BerriAI#43858

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Adds new model pricing and capability data to the model registry.

The cost-map-only change appears safe to merge.

Summary

Adds Tinker model pricing, context limits, and capability metadata to both cost maps.

  • Includes training variants and two serverless inference models.
  • Keeps the root and backup maps identical; provider routing remains out of scope.

Reviews (1) · Last reviewed commit: "Add Tinker (Thinking Machines) models to..."

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.

Add "tinker" in "model_prices_and_context_window.json"

1 participant