UNPKG

n8n-nodes-openai-analytics

Version:
13 lines 440 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getThread = void 0; async function getThread(context) { const { openai, functionThis, i } = context; const threadId = functionThis.getNodeParameter('threadId', i); const thread = await openai.beta.threads.retrieve(threadId); return { json: { ...thread } }; } exports.getThread = getThread; //# sourceMappingURL=getThread.js.map