You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mistral: record usage.service_tier as metadata #867
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).
Activity
feat(mistral): capture usage service tier (#891)
AbhiPrasad commentedon Oct 14, 2026
released with https://github.com/braintrustdata/braintrust-sdk-python/releases/tag/py-sdk-v0.46.0