forked from phoenix/litellm-mirror
fix(bedrock_guardrails.py): pass in prepped data
This commit is contained in:
parent
11c11f3724
commit
17b97cd930
1 changed files with 2 additions and 2 deletions
|
@ -214,10 +214,10 @@ class BedrockGuardrail(CustomGuardrail, BaseAWSLLM):
|
||||||
prepared_request.url,
|
prepared_request.url,
|
||||||
prepared_request.headers,
|
prepared_request.headers,
|
||||||
)
|
)
|
||||||
_json_data = json.dumps(request_data) # type: ignore
|
|
||||||
response = await self.async_handler.post(
|
response = await self.async_handler.post(
|
||||||
url=prepared_request.url,
|
url=prepared_request.url,
|
||||||
json=request_data, # type: ignore
|
data=prepared_request.body, # type: ignore
|
||||||
headers=prepared_request.headers, # type: ignore
|
headers=prepared_request.headers, # type: ignore
|
||||||
)
|
)
|
||||||
verbose_proxy_logger.debug("Bedrock AI response: %s", response.text)
|
verbose_proxy_logger.debug("Bedrock AI response: %s", response.text)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue