Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Jan 10, 2025
1 parent efd5d85 commit 374df03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/src/embeddings/bytedance_doubao.ts
Original file line number Diff line number Diff line change
@@ -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?"
Expand Down
3 changes: 2 additions & 1 deletion libs/langchain-community/src/embeddings/bytedance_doubao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ interface EmbeddingErrorResponse {

export class ByteDanceDoubaoEmbeddings
extends Embeddings
implements ByteDanceDoubaoEmbeddingsParams {
implements ByteDanceDoubaoEmbeddingsParams
{
model: string;

batchSize = 24;
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 374df03

Please sign in to comment.