Skip to content

fix(models): merge request extra_body into LiteLlm defaults (#8505) - #8519

Open
severus0044 wants to merge 1 commit into
google:mainfrom
severus0044:fix/litellm-merge-extra-body-20261205
Open

severus0044 wants to merge 1 commit into
google:mainfrom
severus0044:fix/litellm-merge-extra-body-20261205

Conversation

@severus0044

Copy link
Copy Markdown

Fixes #8505.

LiteLlm.generate_content_async replaced the constructor's extra_body with the request-level http_options.extra_body. The neighboring header handling already merges; this makes extra_body consistent.

Request-level keys override constructor keys on collision; when only one side provides extra_body, behavior is unchanged.

Verified offline: the merge preserves constructor metadata/tags and adds request fields.

@google-cla

google-cla Bot commented Dec 5, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LiteLlm: http_options.extra_body replaces the constructor's extra_body instead of merging with it

1 participant