fix(httpx): preserve sync embed data= kwarg to avoid breaking mock-based tests

The earlier sync_httpx_client.post() call passed data=json.dumps(data),
which downstream embedding tests assert on (e.g. tests for hosted_vllm,
jina_ai, watsonx). Switching to json=data changed the kwarg name and broke
those tests. The OCI signed_body path keeps using data=signed_body and is
unaffected.
This commit is contained in:
mateo-berri 2026-05-19 09:19:43 +00:00
parent 212b30ee66
commit a7eac2d044
No known key found for this signature in database

View file

@ -950,7 +950,7 @@ class BaseLLMHTTPHandler:
response = sync_httpx_client.post(
url=api_base,
headers=headers,
json=data,
data=json.dumps(data),
timeout=timeout,
)
except Exception as e: