Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/google/adk/models/lite_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -4970,7 +4970,11 @@ async def generate_content_async(
completion_args["num_retries"] = http_opts.retry_options.attempts

if http_opts.extra_body is not None:
completion_args["extra_body"] = http_opts.extra_body
# Request-level extra_body must extend, not replace, constructor defaults.
completion_args["extra_body"] = {
**(completion_args.get("extra_body") or {}),
**http_opts.extra_body,
}

include_thoughts = (
llm_request.config.thinking_config.include_thoughts
Expand Down