Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions schemas/token-usage.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,41 @@
},
"additionalProperties": true
},
"ai_credits_accounting_policy": {
"type": "string",
"description": "Accounting policy applied when resolving pricing for this model (e.g. 'concrete_model', 'unknown_model_fallback', 'dynamic_selector_runtime', 'dynamic_selector_fallback'). Present only when apiProxy.maxAiCredits is configured."
},
"ai_credits_dynamic_selector": {
"type": "string",
"description": "Name of the dynamic model selector used to resolve pricing. Present only when apiProxy.maxAiCredits is configured and the model was routed through a dynamic selector."
},
Comment thread
Copilot marked this conversation as resolved.
"ai_credits_fallback_pricing_used": {
"type": "boolean",
"description": "Whether fallback pricing was used to compute AI credits for this call. Present only when apiProxy.maxAiCredits is configured."
},
"ai_credits_pricing_api_version": {
"type": "string",
"description": "API version of the pricing data source used to resolve this model's cost, when known. Present only when apiProxy.maxAiCredits is configured and the pricing source reports a version."
},
"ai_credits_pricing_discount_percent": {
"type": "number",
"minimum": 0,
"maximum": 100,
"description": "Promotional discount percentage applied to this model's pricing, when known. Present only when apiProxy.maxAiCredits is configured and a promotion is active."
},
"ai_credits_pricing_observed_at": {
"type": "string",
"format": "date-time",
"description": "Timestamp (ISO 8601) at which the pricing data used for this call was observed/fetched, when known. Present only when apiProxy.maxAiCredits is configured."
Comment thread
Copilot marked this conversation as resolved.
},
"ai_credits_pricing_source": {
"type": "string",
"description": "Source of the pricing data used to compute AI credits (e.g. 'curated', 'models.dev', 'configured_default', 'builtin_fallback'). Present only when apiProxy.maxAiCredits is configured."
},
"ai_credits_pricing_tier": {
"type": "string",
"description": "Pricing tier applied when resolving cost for this model (e.g. 'default', 'conservative'). Present only when apiProxy.maxAiCredits is configured."
},
"ai_credits_this_response": {
"type": "number",
"minimum": 0,
Expand Down
Loading