Skip to content

Commit

Permalink
fix(ci): Fix build (#7379)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Dec 16, 2024
1 parent 64c2351 commit b2bcfe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/langchain-ollama/src/embeddings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ interface OllamaEmbeddingsParams extends EmbeddingsParams {
/**
* Optional HTTP Headers to include in the request.
*/
headers?: Record<string, string>;
headers?: Headers | Record<string, string>;

/**
* Advanced Ollama API request parameters in camelCase, see
Expand Down Expand Up @@ -63,7 +63,7 @@ export class OllamaEmbeddings extends Embeddings {

this.client = new Ollama({
host: fields?.baseUrl,
headers: fields?.headers,
headers: fields?.headers ? new Headers(fields.headers) : undefined,
});
this.baseUrl = fields?.baseUrl ?? this.baseUrl;

Expand Down

0 comments on commit b2bcfe7

Please sign in to comment.