Mistral usage responses include a string service_tier field (models/usageinfo_dollar_defs.py; present in 2.x and 3.0.0). _parse_usage_metrics in py/src/braintrust/integrations/mistral/tracing.py only keeps numeric values, so it's dropped.
Proposal
- Add
service_tier to _CHAT_METADATA_KEYS and _AGENTS_METADATA_KEYS so the request option is logged.
- Record
usage.service_tier from the response as metadata.
- Read with
getattr so 1.12.4 is unaffected.
Parent: #858 (found while reviewing the 2026-10-05 weekly dependency update, #849).
🤖 Generated with Claude Code
Mistral usage responses include a string
service_tierfield (models/usageinfo_dollar_defs.py; present in 2.x and 3.0.0)._parse_usage_metricsinpy/src/braintrust/integrations/mistral/tracing.pyonly keeps numeric values, so it's dropped.Proposal
service_tierto_CHAT_METADATA_KEYSand_AGENTS_METADATA_KEYSso the request option is logged.usage.service_tierfrom the response as metadata.getattrso 1.12.4 is unaffected.Parent: #858 (found while reviewing the 2026-10-05 weekly dependency update, #849).
🤖 Generated with Claude Code