Skip to content

Adaptive Thinking Broken Claude Litellm #4801

Closed

Description

@lambda72453

🔴 Required Information

Please ensure all items in this section are completed to allow for efficient
triaging. Requests without complete information may be rejected / deprioritized.
If an item is not applicable to you - please mark it as N/A

Describe the Bug:
A clear and concise description of what the bug is.

ADK doesnt handle thinking_blocks for claude models (4.6 +) in between tool calls using lite_llm. This results in the LLM only producing a thinking_block at the beginning of the turn . All other thinking blocks dropped in between.

Reference : https://docs.litellm.ai/docs/reasoning_content

Steps to Reproduce:
Please provide a numbered list of steps to reproduce the behavior:

Enabled Adaptive thinking for a 4.6+ claude model . Give it tools and a complex task. You will see that it only generates a thinking_block at the beginning .

Expected Behavior:
A clear and concise description of what you expected to happen.

Should be able to think between tool calls

Observed Behavior:
What actually happened? Include error messages or crash stack traces here.

Only thinks at the beginning

Environment Details:

  • ADK Library Version (pip show google-adk):
  • adk 1.26.0
  • Desktop OS:** [e.g., macOS, Linux, Windows]
  • mac
  • Python Version (python -V):

Model Information:

  • Are you using LiteLLM: Yes/No
  • Yes
  • Which model is being used: (e.g., gemini-2.5-pro)
  • Claude Sonnet / Opus 4.6 on Bedrock

🟡 Optional Information

Providing this information greatly speeds up the resolution process.

Regression:
Did this work in a previous version of ADK? If so, which one?
Not sure but dont think so

Logs:
Please attach relevant logs. Wrap them in code blocks (```) or attach a
text file.

// Paste logs here

Screenshots / Video:
If applicable, add screenshots or screen recordings to help explain
your problem.

Additional Context:
Add any other context about the problem here.

Minimal Reproduction Code:
Please provide a code snippet or a link to a Gist/repo that isolates the issue.
model = LiteLlm(
model="bedrock/us.anthropic.claude-sonnet-4-6",
thinking={"type": "adaptive"},
cache_control_injection_points=[
{"location": "message", "role": "system"},
{"location": "message", "index": -1},
],
anthropic_beta=["context-1m-2025-08-07"],
num_retries=5,
fallbacks=[
"bedrock/us.anthropic.claude-opus-4-6-v1",
],
)

How often has this issue occurred?:

  • Always (100%)

Activity

  1. added
    models
    on Mar 12, 2026
  2. added theissue type on Mar 12, 2026
  3. self-assigned this
    on Mar 13, 2026
  4. added a commit that references this issue on Mar 17, 2026
    fc45fa6
  5. added a commit that references this issue on Mar 30, 2026
    6ecfe34
  6. added 2 commits that reference this issue on Apr 8, 2026
    5c63ac1
    cb407cc
  7. added a commit that references this issue on Apr 9, 2026
    6ab85e1
  8. added a commit that references this issue on Jun 26, 2026
    febb250
  9. added 3 commits that reference this issue on Aug 11, 2026
    ab78594
    f02a059
    1eefcaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

models

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions