agsamantha/node_modules/@langchain/community/dist/embeddings/tencent_hunyuan/web.js

11 lines
379 B
JavaScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
import { sign } from "../../utils/tencent_hunyuan/web.js";
import { TencentHunyuanEmbeddings as BaseTencentHunyuanEmbeddings, } from "./base.js";
/**
* Class for generating embeddings using the Tencent Hunyuan API.
*/
export class TencentHunyuanEmbeddings extends BaseTencentHunyuanEmbeddings {
constructor(fields) {
super({ ...fields, sign } ?? { sign });
}
}