UNPKG

@langchain/community

Version:
13 lines (12 loc) 479 B
//#region src/utils/tencent_hunyuan/common.ts const service = "hunyuan"; const signedHeaders = `content-type;host`; const getDate = (timestamp) => { const date = /* @__PURE__ */ new Date(timestamp * 1e3); return `${date.getUTCFullYear()}-${`0${(date.getUTCMonth() + 1).toString()}`.slice(-2)}-${`0${date.getUTCDate()}`.slice(-2)}`; }; //#endregion exports.getDate = getDate; exports.service = service; exports.signedHeaders = signedHeaders; //# sourceMappingURL=common.cjs.map