From 77fe5af5b359a84223b535d9a0832f0d13952c50 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Fri, 22 Nov 2024 16:31:58 -0800 Subject: [PATCH] simplify local --- tests/pass_through_tests/test_local_vertex.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/pass_through_tests/test_local_vertex.js b/tests/pass_through_tests/test_local_vertex.js index 6e8fbeacd..f86335636 100644 --- a/tests/pass_through_tests/test_local_vertex.js +++ b/tests/pass_through_tests/test_local_vertex.js @@ -20,14 +20,12 @@ const vertexAI = new VertexAI({ apiEndpoint: "localhost:4000/vertex-ai" }); -// Create customHeaders using Headers -const customHeaders = new Headers({ - "X-Litellm-Api-Key": "sk-1234" -}); // Use customHeaders in RequestOptions const requestOptions = { - customHeaders: customHeaders + customHeaders: new Headers({ + "X-Litellm-Api-Key": "sk-1234" + }) }; const generativeModel = vertexAI.getGenerativeModel(