UNPKG

@langchain/community

Version:
11 lines (10 loc) 429 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 export { getDate, service, signedHeaders }; //# sourceMappingURL=common.js.map