feat(aihubmix): align with Anthropic official plugin v0.3.24#3422
Conversation
Add Adaptive Thinking (type=adaptive), output_config (effort/task_budget), prompt caching TTL (5m/1h), fix 7 bugs (assistant message loss, multi-tool stream, redacted_thinking, JSON prefill, count_tokens adaptive, TTL stream split, token fallback zero), add 13 new models (opus-4-8, sonnet-5, fable-5, gpt-5.6-sol/luna/terra, grok-4.5, glm-5.2, hy3, doubao-seed-2-1-pro/turbo, grok-build-0.1), update 7 existing Claude YAMLs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Code Review
This pull request introduces support for several new models (including Claude Fable 5, Claude Opus 4.8, Claude Sonnet 5, GPT 5.6 variants, Grok 4.5, Doubao, GLM, and Hunyuan 3) and updates existing configurations. It also updates the Anthropic integration to support adaptive thinking, task budgets, effort parameters, and custom prompt caching TTLs. Critical feedback includes resolving thread-safety issues with request-specific state stored on a shared singleton, correcting the prompt token adjustment formula to prevent over-billing, properly handling list-based system prompt serialization, and filtering out empty text blocks in assistant messages to avoid API failures.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Prevent sending empty text content blocks to Anthropic API which would cause 400 errors during tool-use flows with empty assistant content. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
thinking.type=adaptivefor opus-4-7/4-8, sonnet-5, fable-5 (always-on); auto-remove temperature/top_p for adaptive modelstask-budgets-2026-03-13)Test plan
ast.parse) — passedAIModelEntityschema — 0 failures🤖 Generated with Claude Code