From 374df031bcb8ee238a95ad5d3a76bc1968b5ae28 Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Fri, 10 Jan 2025 14:04:55 -0800 Subject: [PATCH] Format --- examples/src/embeddings/bytedance_doubao.ts | 2 +- libs/langchain-community/src/embeddings/bytedance_doubao.ts | 3 ++- .../src/embeddings/tests/bytedance_doubao.int.test.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/src/embeddings/bytedance_doubao.ts b/examples/src/embeddings/bytedance_doubao.ts index 2948f7a747c7..a7a669decb6b 100644 --- a/examples/src/embeddings/bytedance_doubao.ts +++ b/examples/src/embeddings/bytedance_doubao.ts @@ -1,7 +1,7 @@ import { ByteDanceDoubaoEmbeddings } from "@langchain/community/embeddings/bytedance_doubao"; const model = new ByteDanceDoubaoEmbeddings({ - model: 'ep-xxx-xxx' + model: "ep-xxx-xxx", }); const res = await model.embedQuery( "What would be a good company name a company that makes colorful socks?" diff --git a/libs/langchain-community/src/embeddings/bytedance_doubao.ts b/libs/langchain-community/src/embeddings/bytedance_doubao.ts index b15877c61787..d542bc14c989 100644 --- a/libs/langchain-community/src/embeddings/bytedance_doubao.ts +++ b/libs/langchain-community/src/embeddings/bytedance_doubao.ts @@ -52,7 +52,8 @@ interface EmbeddingErrorResponse { export class ByteDanceDoubaoEmbeddings extends Embeddings - implements ByteDanceDoubaoEmbeddingsParams { + implements ByteDanceDoubaoEmbeddingsParams +{ model: string; batchSize = 24; diff --git a/libs/langchain-community/src/embeddings/tests/bytedance_doubao.int.test.ts b/libs/langchain-community/src/embeddings/tests/bytedance_doubao.int.test.ts index 007518dd87c2..f584e1dfbba2 100644 --- a/libs/langchain-community/src/embeddings/tests/bytedance_doubao.int.test.ts +++ b/libs/langchain-community/src/embeddings/tests/bytedance_doubao.int.test.ts @@ -1,7 +1,7 @@ import { test, expect } from "@jest/globals"; import { ByteDanceDoubaoEmbeddings } from "../bytedance_doubao.js"; -const modelName = 'ep-xxx-xxx'; +const modelName = "ep-xxx-xxx"; test.skip("Test ByteDanceDoubaoEmbeddings.embedQuery", async () => { const embeddings = new ByteDanceDoubaoEmbeddings({ model: modelName,