simplify local

This commit is contained in:
Ishaan Jaff 2024-11-22 16:31:58 -08:00
parent 35040f12be
commit 77fe5af5b3

View file

@ -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(