fix add debug to vertex httpx image

This commit is contained in:
Ishaan Jaff 2024-05-20 11:11:14 -07:00
parent 1256159229
commit d2bc2259cc

View file

@ -168,6 +168,16 @@ class VertexLLM(BaseLLM):
"parameters": {"sampleCount": 1}, "parameters": {"sampleCount": 1},
} }
request_str = f"\n curl -X POST \\\n -H \"Authorization: Bearer {auth_header[:10] + 'XXXXXXXXXX'}\" \\\n -H \"Content-Type: application/json; charset=utf-8\" \\\n -d {request_data} \\\n \"{url}\""
logging_obj.pre_call(
input=prompt,
api_key=None,
additional_args={
"complete_input_dict": optional_params,
"request_str": request_str,
},
)
response = await client.post( response = await client.post(
url=url, url=url,
headers={ headers={