From d2bc2259cc80c1c20a3ecb5df28615fdd11b9020 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 20 May 2024 11:11:14 -0700 Subject: [PATCH] fix add debug to vertex httpx image --- litellm/llms/vertex_httpx.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/litellm/llms/vertex_httpx.py b/litellm/llms/vertex_httpx.py index f0b2cfcb3f..4fb554fe49 100644 --- a/litellm/llms/vertex_httpx.py +++ b/litellm/llms/vertex_httpx.py @@ -168,6 +168,16 @@ class VertexLLM(BaseLLM): "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( url=url, headers={