From ecb76d37be7dd4489e95afcc9f72cd6acefb050c Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Thu, 5 Mar 2026 08:53:28 -0800 Subject: [PATCH] address greptile review feedback (greploop iteration 1) Guard data/json args when content is provided to avoid httpx ValueError --- litellm/passthrough/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/passthrough/main.py b/litellm/passthrough/main.py index 8b54f42e7c1..aeeac73a633 100644 --- a/litellm/passthrough/main.py +++ b/litellm/passthrough/main.py @@ -290,9 +290,9 @@ def llm_passthrough_route( method=method, url=updated_url, content=signed_json_body if signed_json_body is not None else content, - data=data if signed_json_body is None else None, + data=data if (signed_json_body is None and content is None) else None, files=files, - json=json if signed_json_body is None else None, + json=json if (signed_json_body is None and content is None) else None, params=params, headers=headers, cookies=cookies,