n8n-nodes-openai-analytics
Version:
n8n node for OpenAI Analytics
13 lines • 440 B
JavaScript
;
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