UNPKG

@langchain/community

Version:
54 lines (53 loc) 1.55 kB
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const require_runtime = require("../../_virtual/_rolldown/runtime.cjs"); const require_base = require("./base.cjs"); const require_web = require("../../utils/tencent_hunyuan/web.cjs"); //#region src/chat_models/tencent_hunyuan/web.ts var web_exports = /* @__PURE__ */ require_runtime.__exportAll({ ChatTencentHunyuan: () => ChatTencentHunyuan }); /** * Wrapper around Tencent Hunyuan large language models that use the Chat endpoint. * * To use you should have the `TENCENT_SECRET_ID` and `TENCENT_SECRET_KEY` * environment variable set. * * @augments BaseLLM * @augments TencentHunyuanInput * @example * ```typescript * const messages = [new HumanMessage("Hello")]; * * const hunyuanLite = new ChatTencentHunyuan({ * model: "hunyuan-lite", * tencentSecretId: "YOUR-SECRET-ID", * tencentSecretKey: "YOUR-SECRET-KEY", * }); * * let res = await hunyuanLite.call(messages); * * const hunyuanPro = new ChatTencentHunyuan({ * model: "hunyuan-pro", * temperature: 1, * tencentSecretId: "YOUR-SECRET-ID", * tencentSecretKey: "YOUR-SECRET-KEY", * }); * * res = await hunyuanPro.call(messages); * ``` */ var ChatTencentHunyuan = class extends require_base.ChatTencentHunyuan { constructor(fields) { super({ ...fields, sign: require_web.sign }); } }; //#endregion exports.ChatTencentHunyuan = ChatTencentHunyuan; Object.defineProperty(exports, "web_exports", { enumerable: true, get: function() { return web_exports; } }); //# sourceMappingURL=web.cjs.map