Skip to content

Commit

Permalink
simplify local
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff committed Nov 23, 2024
1 parent 35040f1 commit 77fe5af
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/pass_through_tests/test_local_vertex.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 77fe5af

Please sign in to comment.