From 4fdf5d5bc358f91f8a6569beb685bca368719603 Mon Sep 17 00:00:00 2001 From: Hieu Pham Date: Sat, 21 Dec 2024 12:58:35 -0800 Subject: [PATCH] Remove unnecessary change --- core/llm/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/index.ts b/core/llm/index.ts index d789f724e..5c0253e86 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -811,7 +811,7 @@ export abstract class BaseLLM implements ILLM { model: this.model, input: batch, }); - return result.data.map((batch) => batch.embedding); + return result.data.map((chunk) => chunk.embedding); } return await this._embed(batch);