Merge pull request #3313 from fbricon/fix-embeddings

fix: don't override embeddings model name with UNSPECIFIED
This commit is contained in:
Nate Sesti 2024-12-11 07:19:55 -08:00 • committed by GitHub
commit 5da2c5015d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -457,7 +457,7 @@ async function intermediateToFinalConfig(
} else {
const llmOptions: LLMOptions = {
...options,
model: "UNSPECIFIED",
model: options.model ?? "UNSPECIFIED"
};
config.embeddingsProvider = new embeddingsProviderClass(
llmOptions,