address greptile review feedback (greploop iteration 1)

Guard data/json args when content is provided to avoid httpx ValueError
This commit is contained in:
Ishaan Jaffer 2026-03-05 08:53:28 -08:00
parent f8afa04e5a
commit ecb76d37be

View file

@ -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,