2026.1.5
[!CAUTION] Breaking Changes
- TensorZero will normalize the reported
usagefrom different model providers. Moving forward,input_tokensandoutput_tokensinclude all token variations (provider prompt caching, reasoning, etc.), just like OpenAI. Tokens cached by TensorZero remain excluded. You can still access the raw usage reported by providers withinclude_raw_usage.
[!WARNING] Planned Deprecations
- Migrate
include_original_responsetoinclude_raw_response. For advanced variant types, the former only returned the last model inference, whereas the latter returns every model inference with associated metadata.- Migrate
allow_auto_detect_region = truetoregion = "sdk"when configuring AWS model providers. The behavior is identical.- Provide the proper API base rather than the full endpoint when configuring custom Anthropic providers. Example:
- Before:
api_base = "https://YOUR-RESOURCE-NAME.services.ai.azure.com/anthropic/v1/messages"- Now:
api_base = "https://YOUR-RESOURCE-NAME.services.ai.azure.com/anthropic/v1/"
Bug Fixes
- Fix a regression that triggered incorrect warnings about usage reporting for streaming inferences with Anthropic models.
- Fix a bug in the TensorZero Python SDK that discarded some request fields in certain multi-turn inferences with tools.
New Features
- Improve error handling across many areas: TensorZero UI, JSON deserialization, AWS providers, streaming inferences, timeouts, etc.
- Support Valkey (Redis) for improving performance of rate limiting checks (recommended at 100+ QPS).
- Support
reasoning_effortfor Gemini 3 models (mapped tothinkingLevel). - Improve handling of Anthropic reasoning models in TensorZero JSON functions. Moving forward,
json_mode = "strict"will use the beta structured outputs feature;json_mode = "on"still uses the legacy assistant message prefill. - Improve handling of reasoning content in the OpenRouter and xAI model providers.
- Add
extra_headerssupport for embedding models. (thanks @jonaylor89!) - Support dynamic credentials for AWS Bedrock and AWS SageMaker model providers.
& multiple under-the-hood and UI improvements (thanks @ndoherty-xyz)!