From bc79388634ebcfcf2e38aa240441f9939e9de85a Mon Sep 17 00:00:00 2001 From: Fred Bricon Date: Wed, 11 Dec 2024 12:17:51 +0100 Subject: [PATCH] fix: don't override embeddings model name with UNSPECIFIED Signed-off-by: Fred Bricon --- core/config/load.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/config/load.ts b/core/config/load.ts index 9cd53e173..ef924d5b2 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -457,7 +457,7 @@ async function intermediateToFinalConfig( } else { const llmOptions: LLMOptions = { ...options, - model: "UNSPECIFIED", + model: options.model ?? "UNSPECIFIED" }; config.embeddingsProvider = new embeddingsProviderClass( llmOptions,