This release includes breaking changes for platform teams planning a safe upgrade.
✓ No known CVEs patched in this version
Topics
+3 more
Summary
AI summaryAdds Zhipu AI / GLM detection and restores OpenAI/Anthropic constructor-call fallback.
Full changelog
New: Zhipu AI / GLM detection
- New
ZhipuDetectorfor thezaiSDK (ZhipuAiClient) and the legacyzhipuaiSDK (ZhipuAI). - Detects
chat.completions.create,embeddings.create, andimages.generations. - Per-SDK default
zai/glm-4.6for dynamic call sites. - Pricing resolves automatically against the bundled LiteLLM data (GLM-4.5 / 4.6 / 4.7 / 5 supported).
Coverage: constructor-call fallback for OpenAI / Anthropic
v0.5.2 removed the loose source-string fallback in can_handle to fix the Zhipu false-positive, but that also lost legitimate detections in DI-style code (a helper module that builds the client without a visible import). v0.6.0 puts those detections back via a positive signal: the file constructs OpenAI(), AsyncOpenAI(), AzureOpenAI(), AsyncAzureOpenAI(), or Anthropic() / AsyncAnthropic() somewhere. Zhipu stays correctly excluded because it doesn't construct those classes.
Upgrading
- uses: Jwrede/[email protected]
pip install --upgrade tokentoll
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About Tokentoll
All releases →Related context
Related tools
Beta — feedback welcome: [email protected]