From e7a218e690d3e459825051d44ca1d19dd9eaecda Mon Sep 17 00:00:00 2001 From: Kelsea Potter <79461418+kpotter-m2@users.noreply.github.com> Date: Mon, 16 Dec 2024 09:36:13 -0500 Subject: [PATCH] Update embeddings.ts headers type to match Ollama Fixes issue https://github.com/langchain-ai/langchainjs/issues/7375 --- libs/langchain-ollama/src/embeddings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain-ollama/src/embeddings.ts b/libs/langchain-ollama/src/embeddings.ts index 8271ac525147..a2075b501c98 100644 --- a/libs/langchain-ollama/src/embeddings.ts +++ b/libs/langchain-ollama/src/embeddings.ts @@ -35,7 +35,7 @@ interface OllamaEmbeddingsParams extends EmbeddingsParams { /** * Optional HTTP Headers to include in the request. */ - headers?: Headers; + headers?: Record; /** * Advanced Ollama API request parameters in camelCase, see