forked from phoenix/litellm-mirror
simplify local
This commit is contained in:
parent
35040f12be
commit
77fe5af5b3
1 changed files with 3 additions and 5 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue