mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Replaces lookup_pricing(raw_model_id) + normalize_for_pricing + 17 prefix rules
with an exact (billing-authority domain, billable-model-string) lookup. Billing
authority is a distinct namespace from the runtime transport Provider enum.
Match is exact: no case normalization, no prefix matching, no inference.
Manifest (scripts/model-capabilities.json):
- Removed pricing_rules (17 prefix-match rules), pricing_exact_records (3 records)
- Added flat pricing_records list of 20 exact records, each with authority + model +
usd_per_mtok (input/output/cache_read/cache_write) + _source provenance
- Authorities: api.anthropic.com, api.openai.com — registered bare-host tokens per
D2'/NIP-AM; not transport Provider enum values
- Semantics: current list prices (ccusage-aligned); cache_write scoped to ephemeral;
other classes unknown
Generator (scripts/generate-model-capabilities.mjs):
- Removed all old pricing machinery (pricingNormalize, normalizeVersionSeparators,
pricingRules, pricingExactRecords, resolvePricing, all TS rule-resolver emission)
- Strict pricing-record validation: registered authority (closed set: api.anthropic.com,
api.openai.com, openrouter.ai); nonempty verbatim model; no control/NUL/quote/backslash
in key fields; finite nonnegative input/output; both cache_read and cache_write required
(absent member is hard error; use null for unpublished); _source provenance required;
duplicate detection on exact emitted identities
- byAuthority grouping uses exact record values — no toLowerCase() anywhere in
pricing generation path
- REGISTERED_AUTHORITIES set; hasUnsafeKeyChars() guard
- TS PRICING_TABLE: key is ${authority}\0${model} (exact strings, no transforms)
- lookupModelPricing(authority, model) performs exact Map lookup (no normalization)
- modelPricing.ts is standalone (no import from modelCapabilities)
Generated artifacts:
- generated_model_capabilities.rs: lookup_pricing(authority: &str, model: &str)
performs exact match — no to_ascii_lowercase() calls, no fallback
- modelPricing.ts: exact PRICING_TABLE + lookupModelPricing(authority, model)
CI (.github/workflows/ci.yml):
- Replaced two-step "regenerate + git diff" check with a single
node scripts/generate-model-capabilities.mjs --check step, which validates
all three generated artifacts (Rust capabilities, TS capabilities, TS pricing)
and exits 1 if any are stale. Self-maintains if a fourth artifact is added.
Tests (generated_model_capabilities_tests.rs, 23 pricing tests):
- Anthropic models with correct rates (claude-fable-5, claude-opus-5, claude-sonnet-5,
claude-opus-4-8, claude-sonnet-4-6, claude-haiku-4-5)
- OpenAI models incl. gpt-5.6-luna different tier, gpt-5.5 null cache_write, gpt-5-pro
null cache fields
- Null guards: unknown authority, custom base URL, unknown model, empty authority,
empty model, both empty, wrong authority for known model
- Exact-match guards: uppercase authority -> None, mixed-case authority -> None,
mixed-case model -> None (no case folding)
- Databricks guards: workspace URL authority -> None, 'databricks' authority -> None
Manifest validator tests (scripts/test-manifest-validator.mjs, 45 tests total):
- 21 new pricing-record mutation tests covering: missing authority, unregistered/path-
bearing/scheme authority, empty model, unsafe chars (double-quote, backslash, NUL,
control), missing output, negative rates, invalid cache rate, deleted cache_read,
deleted cache_write, missing/empty provenance, duplicate records, uppercase authority
Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
1095 lines
31 KiB
JSON
1095 lines
31 KiB
JSON
{
|
|
"$schema": "./model-capabilities-schema.json",
|
|
"_comment": "Hand-curated model capability manifest. Edit here; run scripts/generate-model-capabilities.mjs to regenerate artifacts.",
|
|
"_generated_by": "scripts/generate-model-capabilities.mjs",
|
|
"_sources": {
|
|
"models_dev": "https://models.dev/api.json (retrieved 2026-07-31, SHA-256 d5a4974cd69f19b0f67713acaa6bb3b16e920defdc07ecbdf6b0a936181bb0e0)",
|
|
"anthropic_thinking": "https://platform.claude.com/docs/en/build-with-claude/extended-thinking (July 2025)",
|
|
"anthropic_effort": "https://platform.claude.com/docs/en/build-with-claude/effort (July 2025)",
|
|
"openai_reasoning": "https://platform.openai.com/docs/guides/reasoning (July 2025)",
|
|
"goose_known_models": "goose revision 6789d4af (crates/goose-providers/src/databricks_v2.rs:41-42) — two IDs: databricks-gpt-5-5, databricks-claude-opus-4-7",
|
|
"models_dev_pricing": "https://models.dev/api.json (retrieved 2026-08-03, SHA-256 6fd293aec9fc4274cf2ff1d7bdbe180156b8dde9b80dc9cc0c7e72757931c494) — providers.anthropic and providers.openai cost fields, USD per million tokens"
|
|
},
|
|
"family_tokens": [
|
|
"claude-",
|
|
"gpt-"
|
|
],
|
|
"family_rules": [
|
|
{
|
|
"id": "anthropic-manual-budget-claude3",
|
|
"match_kind": "prefix",
|
|
"match_value": "claude-3",
|
|
"providers": [
|
|
"anthropic",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 10,
|
|
"thinking_mode": "manual-budget",
|
|
"supported_efforts": [
|
|
"low",
|
|
"medium",
|
|
"high"
|
|
],
|
|
"default_effort": null,
|
|
"databricks_v2_wire_route": "anthropic-messages",
|
|
"normalization_policy": "none"
|
|
},
|
|
{
|
|
"id": "anthropic-manual-budget-opus-4-5",
|
|
"match_kind": "exact",
|
|
"match_value": "claude-opus-4-5",
|
|
"providers": [
|
|
"anthropic",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 10,
|
|
"thinking_mode": "manual-budget",
|
|
"supported_efforts": [
|
|
"low",
|
|
"medium",
|
|
"high"
|
|
],
|
|
"default_effort": null,
|
|
"databricks_v2_wire_route": "anthropic-messages",
|
|
"normalization_policy": "none",
|
|
"registry_label": "Claude Opus 4.5"
|
|
},
|
|
{
|
|
"id": "anthropic-adaptive-xhigh-opus-4-7",
|
|
"match_kind": "prefix",
|
|
"match_value": "claude-opus-4-7",
|
|
"providers": [
|
|
"anthropic",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 10,
|
|
"thinking_mode": "adaptive",
|
|
"supported_efforts": [
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
],
|
|
"default_effort": "high",
|
|
"databricks_v2_wire_route": "anthropic-messages",
|
|
"normalization_policy": "none",
|
|
"registry_label": "Claude Opus 4.7"
|
|
},
|
|
{
|
|
"id": "anthropic-adaptive-xhigh-opus-4-8",
|
|
"match_kind": "prefix",
|
|
"match_value": "claude-opus-4-8",
|
|
"providers": [
|
|
"anthropic",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 10,
|
|
"thinking_mode": "adaptive",
|
|
"supported_efforts": [
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
],
|
|
"default_effort": "high",
|
|
"databricks_v2_wire_route": "anthropic-messages",
|
|
"normalization_policy": "none",
|
|
"registry_label": "Claude Opus 4.8"
|
|
},
|
|
{
|
|
"id": "anthropic-adaptive-xhigh-opus-5",
|
|
"match_kind": "prefix",
|
|
"match_value": "claude-opus-5",
|
|
"providers": [
|
|
"anthropic",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 10,
|
|
"thinking_mode": "adaptive",
|
|
"supported_efforts": [
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
],
|
|
"default_effort": "high",
|
|
"databricks_v2_wire_route": "anthropic-messages",
|
|
"normalization_policy": "none",
|
|
"registry_label": "Claude Opus 5"
|
|
},
|
|
{
|
|
"id": "anthropic-adaptive-xhigh-sonnet-5",
|
|
"match_kind": "prefix",
|
|
"match_value": "claude-sonnet-5",
|
|
"providers": [
|
|
"anthropic",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 10,
|
|
"thinking_mode": "adaptive",
|
|
"supported_efforts": [
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
],
|
|
"default_effort": "high",
|
|
"databricks_v2_wire_route": "anthropic-messages",
|
|
"normalization_policy": "none",
|
|
"registry_label": "Claude Sonnet 5"
|
|
},
|
|
{
|
|
"id": "anthropic-adaptive-xhigh-fable-5",
|
|
"match_kind": "prefix",
|
|
"match_value": "claude-fable-5",
|
|
"providers": [
|
|
"anthropic",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 10,
|
|
"thinking_mode": "adaptive",
|
|
"supported_efforts": [
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
],
|
|
"default_effort": "high",
|
|
"databricks_v2_wire_route": "anthropic-messages",
|
|
"normalization_policy": "none",
|
|
"registry_label": "Claude Fable 5"
|
|
},
|
|
{
|
|
"id": "anthropic-adaptive-xhigh-mythos-5",
|
|
"match_kind": "prefix",
|
|
"match_value": "claude-mythos-5",
|
|
"providers": [
|
|
"anthropic",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 10,
|
|
"thinking_mode": "adaptive",
|
|
"supported_efforts": [
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
],
|
|
"default_effort": "high",
|
|
"databricks_v2_wire_route": "anthropic-messages",
|
|
"normalization_policy": "none",
|
|
"registry_label": "Claude Mythos 5"
|
|
},
|
|
{
|
|
"id": "anthropic-adaptive-no-xhigh-opus-4-6",
|
|
"match_kind": "prefix",
|
|
"match_value": "claude-opus-4-6",
|
|
"providers": [
|
|
"anthropic",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 10,
|
|
"thinking_mode": "adaptive",
|
|
"supported_efforts": [
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"max"
|
|
],
|
|
"default_effort": "high",
|
|
"databricks_v2_wire_route": "anthropic-messages",
|
|
"normalization_policy": "none",
|
|
"registry_label": "Claude Opus 4.6"
|
|
},
|
|
{
|
|
"id": "anthropic-adaptive-no-xhigh-sonnet-4-6",
|
|
"match_kind": "prefix",
|
|
"match_value": "claude-sonnet-4-6",
|
|
"providers": [
|
|
"anthropic",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 10,
|
|
"thinking_mode": "adaptive",
|
|
"supported_efforts": [
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"max"
|
|
],
|
|
"default_effort": "high",
|
|
"databricks_v2_wire_route": "anthropic-messages",
|
|
"normalization_policy": "none",
|
|
"registry_label": "Claude Sonnet 4.6"
|
|
},
|
|
{
|
|
"id": "anthropic-adaptive-no-xhigh-mythos-preview",
|
|
"match_kind": "prefix",
|
|
"match_value": "claude-mythos-preview",
|
|
"providers": [
|
|
"anthropic",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 10,
|
|
"thinking_mode": "adaptive",
|
|
"supported_efforts": [
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"max"
|
|
],
|
|
"default_effort": "high",
|
|
"databricks_v2_wire_route": "anthropic-messages",
|
|
"normalization_policy": "none",
|
|
"registry_label": "Claude Mythos Preview"
|
|
},
|
|
{
|
|
"id": "openai-gpt5-pro",
|
|
"match_kind": "gpt5-token",
|
|
"match_value": "gpt-5-pro",
|
|
"match_aliases": [
|
|
"gpt5-pro"
|
|
],
|
|
"providers": [
|
|
"openai",
|
|
"databricks",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 20,
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"high"
|
|
],
|
|
"default_effort": "high",
|
|
"databricks_v2_wire_route": "openai-responses",
|
|
"normalization_policy": "openai-standard",
|
|
"registry_label": "GPT-5 Pro"
|
|
},
|
|
{
|
|
"id": "openai-gpt5-6",
|
|
"match_kind": "gpt5-token",
|
|
"match_value": "gpt-5.6",
|
|
"match_aliases": [
|
|
"gpt5.6",
|
|
"gpt-5-6",
|
|
"gpt5-6"
|
|
],
|
|
"providers": [
|
|
"openai",
|
|
"databricks",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 15,
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
],
|
|
"default_effort": "medium",
|
|
"databricks_v2_wire_route": "openai-responses",
|
|
"normalization_policy": "openai-standard",
|
|
"registry_label": "GPT-5.6"
|
|
},
|
|
{
|
|
"id": "openai-gpt5-5",
|
|
"match_kind": "gpt5-token",
|
|
"match_value": "gpt-5.5",
|
|
"match_aliases": [
|
|
"gpt5.5",
|
|
"gpt-5-5",
|
|
"gpt5-5"
|
|
],
|
|
"providers": [
|
|
"openai",
|
|
"databricks",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 15,
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh"
|
|
],
|
|
"default_effort": "medium",
|
|
"databricks_v2_wire_route": "openai-responses",
|
|
"normalization_policy": "openai-standard",
|
|
"registry_label": "GPT-5.5"
|
|
},
|
|
{
|
|
"id": "openai-gpt5-4",
|
|
"match_kind": "gpt5-token",
|
|
"match_value": "gpt-5.4",
|
|
"match_aliases": [
|
|
"gpt5.4",
|
|
"gpt-5-4",
|
|
"gpt5-4"
|
|
],
|
|
"providers": [
|
|
"openai",
|
|
"databricks",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 15,
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh"
|
|
],
|
|
"default_effort": "medium",
|
|
"databricks_v2_wire_route": "openai-responses",
|
|
"normalization_policy": "openai-standard",
|
|
"registry_label": "GPT-5.4"
|
|
},
|
|
{
|
|
"id": "openai-gpt5-1",
|
|
"match_kind": "gpt5-token",
|
|
"match_value": "gpt-5.1",
|
|
"match_aliases": [
|
|
"gpt5.1",
|
|
"gpt-5-1",
|
|
"gpt5-1"
|
|
],
|
|
"providers": [
|
|
"openai",
|
|
"databricks",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 15,
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"low",
|
|
"medium",
|
|
"high"
|
|
],
|
|
"default_effort": "none",
|
|
"databricks_v2_wire_route": "openai-responses",
|
|
"normalization_policy": "openai-standard",
|
|
"registry_label": "GPT-5.1"
|
|
},
|
|
{
|
|
"id": "openai-gpt5-base",
|
|
"match_kind": "gpt5-base",
|
|
"match_value": "gpt-5",
|
|
"match_aliases": [
|
|
"gpt5"
|
|
],
|
|
"providers": [
|
|
"openai",
|
|
"databricks",
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 10,
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high"
|
|
],
|
|
"default_effort": "medium",
|
|
"databricks_v2_wire_route": "openai-responses",
|
|
"normalization_policy": "openai-standard",
|
|
"registry_label": "GPT-5"
|
|
},
|
|
{
|
|
"id": "dbv2-claude-code-names-segment",
|
|
"_comment": "DBv2-only rule: endpoint names containing a Claude code-name segment (opus, sonnet, haiku, mythos, fable, claude) route via Anthropic Messages. This matches goose-opus-5 (segments: goose,opus,5) etc. Effort classification uses conservative defaults because prefix-stripped alias ('opus-5') is not a recognized Claude family.",
|
|
"match_kind": "segment",
|
|
"match_value": "claude",
|
|
"match_aliases": [
|
|
"opus",
|
|
"sonnet",
|
|
"haiku",
|
|
"mythos",
|
|
"fable"
|
|
],
|
|
"providers": [
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 5,
|
|
"thinking_mode": "omit-fields",
|
|
"supported_efforts": [
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
],
|
|
"default_effort": "high",
|
|
"databricks_v2_wire_route": "anthropic-messages",
|
|
"normalization_policy": "none"
|
|
},
|
|
{
|
|
"id": "dbv2-gpt-code-names-segment",
|
|
"_comment": "DBv2-only rule: endpoint names containing a GPT segment prefix (gpt*) route via OpenAI Responses. Handles 'gpt', 'gpt5', 'gpt-5' segments. Priority < individual gpt5 family rules so explicit families take precedence.",
|
|
"match_kind": "segment-prefix",
|
|
"match_value": "gpt",
|
|
"providers": [
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 5,
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh"
|
|
],
|
|
"default_effort": "medium",
|
|
"databricks_v2_wire_route": "openai-responses",
|
|
"normalization_policy": "openai-clamp-max-to-xhigh"
|
|
},
|
|
{
|
|
"id": "dbv2-sol-luna-terra-segment",
|
|
"_comment": "DBv2-only rule: sol/luna/terra are OpenAI code names. Route via OpenAI Responses. Must use segment match to avoid matching substrings (consolidated-llama has 'sol' but not as a segment).",
|
|
"match_kind": "segment",
|
|
"match_value": "sol",
|
|
"match_aliases": [
|
|
"luna",
|
|
"terra"
|
|
],
|
|
"providers": [
|
|
"databricks_v2"
|
|
],
|
|
"match_priority": 5,
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh"
|
|
],
|
|
"default_effort": "medium",
|
|
"databricks_v2_wire_route": "openai-responses",
|
|
"normalization_policy": "openai-clamp-max-to-xhigh"
|
|
}
|
|
],
|
|
"_comment_registry_labels": "All 30 Databricks v2 endpoint-ID to display-name pairs. Represented as [{id,label}] array so duplicate-ID detection is structurally possible. Generated into DATABRICKS_MODEL_NAMES in both Rust and TS.",
|
|
"registry_labels": [
|
|
{
|
|
"id": "databricks-claude-haiku-4-5",
|
|
"label": "Claude Haiku 4.5 (latest)"
|
|
},
|
|
{
|
|
"id": "databricks-claude-opus-4-1",
|
|
"label": "Claude Opus 4.1 (latest)"
|
|
},
|
|
{
|
|
"id": "databricks-claude-opus-4-5",
|
|
"label": "Claude Opus 4.5 (latest)"
|
|
},
|
|
{
|
|
"id": "databricks-claude-opus-4-6",
|
|
"label": "Claude Opus 4.6"
|
|
},
|
|
{
|
|
"id": "databricks-claude-opus-4-7",
|
|
"label": "Claude Opus 4.7"
|
|
},
|
|
{
|
|
"id": "databricks-claude-sonnet-4",
|
|
"label": "Claude Sonnet 4.5"
|
|
},
|
|
{
|
|
"id": "databricks-claude-sonnet-4-5",
|
|
"label": "Claude Sonnet 4.5 (latest)"
|
|
},
|
|
{
|
|
"id": "databricks-claude-sonnet-4-6",
|
|
"label": "Claude Sonnet 4.6"
|
|
},
|
|
{
|
|
"id": "databricks-gemini-2-5-flash",
|
|
"label": "Gemini 2.5 Flash"
|
|
},
|
|
{
|
|
"id": "databricks-gemini-2-5-pro",
|
|
"label": "Gemini 2.5 Pro"
|
|
},
|
|
{
|
|
"id": "databricks-gemini-3-1-flash-lite",
|
|
"label": "Gemini 3.1 Flash Lite Preview"
|
|
},
|
|
{
|
|
"id": "databricks-gemini-3-1-pro",
|
|
"label": "Gemini 3.1 Pro Preview Custom Tools"
|
|
},
|
|
{
|
|
"id": "databricks-gemini-3-flash",
|
|
"label": "Gemini 3 Flash Preview"
|
|
},
|
|
{
|
|
"id": "databricks-gemini-3-pro",
|
|
"label": "Gemini 3 Pro Preview"
|
|
},
|
|
{
|
|
"id": "databricks-glm-5-2",
|
|
"label": "GLM-5.2"
|
|
},
|
|
{
|
|
"id": "databricks-gpt-5",
|
|
"label": "GPT-5"
|
|
},
|
|
{
|
|
"id": "databricks-gpt-5-1",
|
|
"label": "GPT-5.1"
|
|
},
|
|
{
|
|
"id": "databricks-gpt-5-2",
|
|
"label": "GPT-5.2"
|
|
},
|
|
{
|
|
"id": "databricks-gpt-5-4",
|
|
"label": "GPT-5.4"
|
|
},
|
|
{
|
|
"id": "databricks-gpt-5-4-mini",
|
|
"label": "GPT-5.4 mini"
|
|
},
|
|
{
|
|
"id": "databricks-gpt-5-4-nano",
|
|
"label": "GPT-5.4 nano"
|
|
},
|
|
{
|
|
"id": "databricks-gpt-5-5",
|
|
"label": "GPT-5.5"
|
|
},
|
|
{
|
|
"id": "databricks-gpt-5-6-luna",
|
|
"label": "GPT-5.6 Luna"
|
|
},
|
|
{
|
|
"id": "databricks-gpt-5-6-sol",
|
|
"label": "GPT-5.6 Sol"
|
|
},
|
|
{
|
|
"id": "databricks-gpt-5-6-terra",
|
|
"label": "GPT-5.6 Terra"
|
|
},
|
|
{
|
|
"id": "databricks-gpt-5-mini",
|
|
"label": "GPT-5 Mini"
|
|
},
|
|
{
|
|
"id": "databricks-gpt-5-nano",
|
|
"label": "GPT-5 Nano"
|
|
},
|
|
{
|
|
"id": "databricks-gpt-oss-120b",
|
|
"label": "GPT OSS 120B"
|
|
},
|
|
{
|
|
"id": "databricks-gpt-oss-20b",
|
|
"label": "GPT OSS 20B"
|
|
},
|
|
{
|
|
"id": "databricks-kimi-k2-7-code",
|
|
"label": "Kimi K2.7 Code"
|
|
}
|
|
],
|
|
"_comment_databricks_v2_known_models": "Authoritative list of Databricks v2 known model IDs. Mirrors goose DATABRICKS_V2_KNOWN_MODELS at revision 6789d4af (crates/goose-providers/src/databricks_v2.rs:41-42). Generated into DATABRICKS_V2_KNOWN_MODELS in both Rust and TS. Uniqueness enforced by the generator. Opt-in drift check: node scripts/generate-model-capabilities.mjs --check-goose",
|
|
"databricks_v2_known_models": [
|
|
"databricks-gpt-5-5",
|
|
"databricks-claude-opus-4-7"
|
|
],
|
|
"exact_records": [
|
|
{
|
|
"provider": "databricks_v2",
|
|
"raw_model_id": "databricks-gpt-5-4-mini",
|
|
"registry_label": "GPT-5.4 Mini",
|
|
"supported_efforts_override": [
|
|
"low",
|
|
"medium",
|
|
"high"
|
|
],
|
|
"source": "models.dev reasoning_options: low|medium|high (family rule adds none+xhigh — adopt provider-advertised)",
|
|
"_reconciliation": "adopt",
|
|
"_reconciliation_note": "models.dev advertises low|medium|high. Family rule (gpt5-4) adds none+xhigh. Provider-advertised wins per plan F1 policy.",
|
|
"_reconciliation_doc": "https://models.dev/api.json (retrieved 2026-07-31, SHA-256 d5a4974cd69f19b0f67713acaa6bb3b16e920defdc07ecbdf6b0a936181bb0e0): providers.databricks.models[\"databricks-gpt-5-4-mini\"].reasoning_options=[{\"type\":\"effort\",\"values\":[\"low\",\"medium\",\"high\"]}]"
|
|
},
|
|
{
|
|
"provider": "databricks_v2",
|
|
"raw_model_id": "databricks-gpt-5-4-nano",
|
|
"registry_label": "GPT-5.4 Nano",
|
|
"supported_efforts_override": [
|
|
"low",
|
|
"medium",
|
|
"high"
|
|
],
|
|
"source": "models.dev reasoning_options: low|medium|high",
|
|
"_reconciliation": "adopt",
|
|
"_reconciliation_note": "models.dev advertises low|medium|high. Same as gpt-5-4-mini. Adopt.",
|
|
"_reconciliation_doc": "https://models.dev/api.json (retrieved 2026-07-31, SHA-256 d5a4974cd69f19b0f67713acaa6bb3b16e920defdc07ecbdf6b0a936181bb0e0): providers.databricks.models[\"databricks-gpt-5-4-nano\"].reasoning_options=[{\"type\":\"effort\",\"values\":[\"low\",\"medium\",\"high\"]}]"
|
|
},
|
|
{
|
|
"provider": "databricks_v2",
|
|
"raw_model_id": "databricks-gpt-5-6-sol",
|
|
"registry_label": "GPT-5.6 Sol",
|
|
"supported_efforts_override": [
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"max"
|
|
],
|
|
"source": "models.dev reasoning_options: low|medium|high|max (family rule adds none+xhigh — provider-advertised wins per plan F1)",
|
|
"_reconciliation": "adopt",
|
|
"_reconciliation_note": "models.dev advertises [low, medium, high, max]. Family rule (gpt5-6) has none+xhigh+max; sol endpoint does not expose none or xhigh. Provider-advertised wins.",
|
|
"_reconciliation_doc": "https://models.dev/api.json (retrieved 2026-07-31, SHA-256 d5a4974cd69f19b0f67713acaa6bb3b16e920defdc07ecbdf6b0a936181bb0e0): providers.databricks.models[\"databricks-gpt-5-6-sol\"].reasoning_options=[{\"type\":\"effort\",\"values\":[\"low\",\"medium\",\"high\",\"max\"]}]"
|
|
},
|
|
{
|
|
"provider": "databricks_v2",
|
|
"raw_model_id": "databricks-gpt-5-5",
|
|
"registry_label": "GPT-5.5",
|
|
"source": "models.dev reasoning_options: low|medium|high (family rule adds none+xhigh — provider-advertised wins per plan F1)",
|
|
"_reconciliation": "adopt",
|
|
"_reconciliation_note": "models.dev (pinned payload) advertises [low, medium, high]. Family rule (gpt5-5) has none+xhigh; this Databricks endpoint does not expose none or xhigh. Provider-advertised wins.",
|
|
"supported_efforts_override": [
|
|
"low",
|
|
"medium",
|
|
"high"
|
|
],
|
|
"_reconciliation_doc": "https://models.dev/api.json (retrieved 2026-07-31, SHA-256 d5a4974cd69f19b0f67713acaa6bb3b16e920defdc07ecbdf6b0a936181bb0e0): providers.databricks.models[\"databricks-gpt-5-5\"].reasoning_options=[{\"type\":\"effort\",\"values\":[\"low\",\"medium\",\"high\"]}]"
|
|
},
|
|
{
|
|
"provider": "databricks_v2",
|
|
"raw_model_id": "databricks-claude-opus-4-7",
|
|
"registry_label": "Claude Opus 4.7",
|
|
"source": "DATABRICKS_V2_KNOWN_MODELS; family rule anthropic-adaptive-xhigh-opus-4-7 applies",
|
|
"_reconciliation": "no-effort-divergence",
|
|
"_reconciliation_note": "models.dev advertises reasoning_options=[{\"type\":\"budget_tokens\",\"min\":1024}]. This is a different capability axis (extended thinking token budget), not an effort-level selector. No effort divergence to reconcile — efforts for this model come from the anthropic family rule (anthropic-adaptive-xhigh-opus-4-7).",
|
|
"_reconciliation_doc": "https://models.dev/api.json (retrieved 2026-07-31, SHA-256 d5a4974cd69f19b0f67713acaa6bb3b16e920defdc07ecbdf6b0a936181bb0e0): providers.databricks.models[\"databricks-claude-opus-4-7\"].reasoning_options=[{\"type\":\"budget_tokens\",\"min\":1024}]"
|
|
}
|
|
],
|
|
"provider_fallbacks": {
|
|
"anthropic": {
|
|
"blank": {
|
|
"databricks_v2_wire_route": "not-applicable",
|
|
"thinking_mode": "adaptive",
|
|
"supported_efforts": [
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
],
|
|
"default_effort": "high",
|
|
"normalization_policy": "none"
|
|
},
|
|
"concrete_unknown": {
|
|
"databricks_v2_wire_route": "not-applicable",
|
|
"thinking_mode": "omit-fields",
|
|
"supported_efforts": [
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
],
|
|
"default_effort": "high",
|
|
"normalization_policy": "none"
|
|
}
|
|
},
|
|
"openai": {
|
|
"blank": {
|
|
"databricks_v2_wire_route": "not-applicable",
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh"
|
|
],
|
|
"default_effort": "medium",
|
|
"normalization_policy": "openai-clamp-max-to-xhigh"
|
|
},
|
|
"concrete_unknown": {
|
|
"databricks_v2_wire_route": "not-applicable",
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh"
|
|
],
|
|
"default_effort": "medium",
|
|
"normalization_policy": "openai-clamp-max-to-xhigh"
|
|
}
|
|
},
|
|
"databricks_v2": {
|
|
"blank": {
|
|
"databricks_v2_wire_route": "route-unknown",
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
],
|
|
"default_effort": "medium",
|
|
"normalization_policy": "openai-clamp-max-to-xhigh"
|
|
},
|
|
"concrete_unknown": {
|
|
"databricks_v2_wire_route": "mlflow-chat",
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh"
|
|
],
|
|
"default_effort": "medium",
|
|
"normalization_policy": "openai-clamp-max-to-xhigh"
|
|
}
|
|
},
|
|
"databricks": {
|
|
"blank": {
|
|
"databricks_v2_wire_route": "not-applicable",
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh"
|
|
],
|
|
"default_effort": "medium",
|
|
"normalization_policy": "openai-clamp-max-to-xhigh"
|
|
},
|
|
"concrete_unknown": {
|
|
"databricks_v2_wire_route": "not-applicable",
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh"
|
|
],
|
|
"default_effort": "medium",
|
|
"normalization_policy": "openai-clamp-max-to-xhigh"
|
|
}
|
|
},
|
|
"openrouter": {
|
|
"blank": {
|
|
"databricks_v2_wire_route": "not-applicable",
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
],
|
|
"default_effort": "medium",
|
|
"normalization_policy": "none"
|
|
},
|
|
"concrete_unknown": {
|
|
"databricks_v2_wire_route": "not-applicable",
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
],
|
|
"default_effort": "medium",
|
|
"normalization_policy": "none"
|
|
}
|
|
},
|
|
"_default": {
|
|
"blank": {
|
|
"databricks_v2_wire_route": "not-applicable",
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
],
|
|
"default_effort": "medium",
|
|
"normalization_policy": "none"
|
|
},
|
|
"concrete_unknown": {
|
|
"databricks_v2_wire_route": "not-applicable",
|
|
"thinking_mode": "none",
|
|
"supported_efforts": [
|
|
"none",
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
],
|
|
"default_effort": "medium",
|
|
"normalization_policy": "none"
|
|
}
|
|
}
|
|
},
|
|
"_comment_pricing": "Pricing manifest: USD per million tokens (usd_per_mtok). Lookup is exact (authority, model) — no prefix inference, no normalization. authority is the canonical billing-authority domain; model is the exact string the provider API returns in its response body. null fields mean the price is not published — never treat as zero. Databricks routes are corporate-internal and are not represented here; the publisher must omit PricingIdentity for those routes. Source: models.dev/api.json (retrieved 2026-08-03, SHA-256 6fd293ae). Semantics: current list prices, labeled estimated at current prices (ccusage-aligned). cache_write prices are scoped to the default ephemeral cache class; other classes/TTLs are not priced here.",
|
|
"pricing_records": [
|
|
{
|
|
"_comment": "Anthropic — authority: api.anthropic.com. model strings are the canonical IDs returned by the Anthropic API.",
|
|
"authority": "api.anthropic.com",
|
|
"model": "claude-fable-5",
|
|
"usd_per_mtok": {
|
|
"input": 10.0,
|
|
"output": 50.0,
|
|
"cache_read": 1.0,
|
|
"cache_write": 12.5
|
|
},
|
|
"_source": "models.dev anthropic/claude-fable-5"
|
|
},
|
|
{
|
|
"authority": "api.anthropic.com",
|
|
"model": "claude-sonnet-5",
|
|
"usd_per_mtok": {
|
|
"input": 2.0,
|
|
"output": 10.0,
|
|
"cache_read": 0.2,
|
|
"cache_write": 2.5
|
|
},
|
|
"_source": "models.dev anthropic/claude-sonnet-5"
|
|
},
|
|
{
|
|
"authority": "api.anthropic.com",
|
|
"model": "claude-opus-5",
|
|
"usd_per_mtok": {
|
|
"input": 5.0,
|
|
"output": 25.0,
|
|
"cache_read": 0.5,
|
|
"cache_write": 6.25
|
|
},
|
|
"_source": "models.dev anthropic/claude-opus-5"
|
|
},
|
|
{
|
|
"authority": "api.anthropic.com",
|
|
"model": "claude-opus-4-8",
|
|
"usd_per_mtok": {
|
|
"input": 5.0,
|
|
"output": 25.0,
|
|
"cache_read": 0.5,
|
|
"cache_write": 6.25
|
|
},
|
|
"_source": "models.dev anthropic/claude-opus-4-8"
|
|
},
|
|
{
|
|
"authority": "api.anthropic.com",
|
|
"model": "claude-opus-4-7",
|
|
"usd_per_mtok": {
|
|
"input": 5.0,
|
|
"output": 25.0,
|
|
"cache_read": 0.5,
|
|
"cache_write": 6.25
|
|
},
|
|
"_source": "models.dev anthropic/claude-opus-4-7"
|
|
},
|
|
{
|
|
"authority": "api.anthropic.com",
|
|
"model": "claude-opus-4-6",
|
|
"usd_per_mtok": {
|
|
"input": 5.0,
|
|
"output": 25.0,
|
|
"cache_read": 0.5,
|
|
"cache_write": 6.25
|
|
},
|
|
"_source": "models.dev anthropic/claude-opus-4-6"
|
|
},
|
|
{
|
|
"authority": "api.anthropic.com",
|
|
"model": "claude-opus-4-5",
|
|
"usd_per_mtok": {
|
|
"input": 5.0,
|
|
"output": 25.0,
|
|
"cache_read": 0.5,
|
|
"cache_write": 6.25
|
|
},
|
|
"_source": "models.dev anthropic/claude-opus-4-5"
|
|
},
|
|
{
|
|
"authority": "api.anthropic.com",
|
|
"model": "claude-sonnet-4-6",
|
|
"usd_per_mtok": {
|
|
"input": 3.0,
|
|
"output": 15.0,
|
|
"cache_read": 0.3,
|
|
"cache_write": 3.75
|
|
},
|
|
"_source": "models.dev anthropic/claude-sonnet-4-6"
|
|
},
|
|
{
|
|
"authority": "api.anthropic.com",
|
|
"model": "claude-sonnet-4-5",
|
|
"usd_per_mtok": {
|
|
"input": 3.0,
|
|
"output": 15.0,
|
|
"cache_read": 0.3,
|
|
"cache_write": 3.75
|
|
},
|
|
"_source": "models.dev anthropic/claude-sonnet-4-5"
|
|
},
|
|
{
|
|
"authority": "api.anthropic.com",
|
|
"model": "claude-haiku-4-5",
|
|
"usd_per_mtok": {
|
|
"input": 1.0,
|
|
"output": 5.0,
|
|
"cache_read": 0.1,
|
|
"cache_write": 1.25
|
|
},
|
|
"_source": "models.dev anthropic/claude-haiku-4-5"
|
|
},
|
|
{
|
|
"authority": "api.anthropic.com",
|
|
"model": "claude-opus-4-1",
|
|
"usd_per_mtok": {
|
|
"input": 15.0,
|
|
"output": 75.0,
|
|
"cache_read": 1.5,
|
|
"cache_write": 18.75
|
|
},
|
|
"_source": "models.dev anthropic/claude-opus-4-1 (listed as claude-opus-4 legacy tier)"
|
|
},
|
|
{
|
|
"_comment": "OpenAI — authority: api.openai.com. model strings are the canonical IDs returned by the OpenAI API.",
|
|
"authority": "api.openai.com",
|
|
"model": "gpt-5-pro",
|
|
"usd_per_mtok": {
|
|
"input": 15.0,
|
|
"output": 120.0,
|
|
"cache_read": null,
|
|
"cache_write": null
|
|
},
|
|
"_source": "models.dev openai/gpt-5-pro"
|
|
},
|
|
{
|
|
"authority": "api.openai.com",
|
|
"model": "gpt-5.6",
|
|
"usd_per_mtok": {
|
|
"input": 5.0,
|
|
"output": 30.0,
|
|
"cache_read": 0.5,
|
|
"cache_write": 6.25
|
|
},
|
|
"_source": "models.dev openai/gpt-5.6"
|
|
},
|
|
{
|
|
"authority": "api.openai.com",
|
|
"model": "gpt-5.6-sol",
|
|
"usd_per_mtok": {
|
|
"input": 5.0,
|
|
"output": 30.0,
|
|
"cache_read": 0.5,
|
|
"cache_write": 6.25
|
|
},
|
|
"_source": "models.dev openai/gpt-5.6-sol (same price tier as gpt-5.6)"
|
|
},
|
|
{
|
|
"authority": "api.openai.com",
|
|
"model": "gpt-5.6-luna",
|
|
"usd_per_mtok": {
|
|
"input": 0.2,
|
|
"output": 1.2,
|
|
"cache_read": 0.02,
|
|
"cache_write": 0.25
|
|
},
|
|
"_source": "models.dev openai/gpt-5.6-luna (different price tier from gpt-5.6-sol/base)"
|
|
},
|
|
{
|
|
"authority": "api.openai.com",
|
|
"model": "gpt-5.6-terra",
|
|
"usd_per_mtok": {
|
|
"input": 2.0,
|
|
"output": 12.0,
|
|
"cache_read": 0.2,
|
|
"cache_write": 2.5
|
|
},
|
|
"_source": "models.dev openai/gpt-5.6-terra"
|
|
},
|
|
{
|
|
"authority": "api.openai.com",
|
|
"model": "gpt-5.5",
|
|
"usd_per_mtok": {
|
|
"input": 5.0,
|
|
"output": 30.0,
|
|
"cache_read": 0.5,
|
|
"cache_write": null
|
|
},
|
|
"_source": "models.dev openai/gpt-5.5"
|
|
},
|
|
{
|
|
"authority": "api.openai.com",
|
|
"model": "gpt-5.4",
|
|
"usd_per_mtok": {
|
|
"input": 2.5,
|
|
"output": 15.0,
|
|
"cache_read": 0.25,
|
|
"cache_write": null
|
|
},
|
|
"_source": "models.dev openai/gpt-5.4"
|
|
},
|
|
{
|
|
"authority": "api.openai.com",
|
|
"model": "gpt-5.1",
|
|
"usd_per_mtok": {
|
|
"input": 1.25,
|
|
"output": 10.0,
|
|
"cache_read": 0.125,
|
|
"cache_write": null
|
|
},
|
|
"_source": "models.dev openai/gpt-5.1"
|
|
},
|
|
{
|
|
"authority": "api.openai.com",
|
|
"model": "gpt-5",
|
|
"usd_per_mtok": {
|
|
"input": 1.25,
|
|
"output": 10.0,
|
|
"cache_read": 0.125,
|
|
"cache_write": null
|
|
},
|
|
"_source": "models.dev openai/gpt-5"
|
|
}
|
|
]
|
|
}
|