fix(OpenAI Node): Add proxy agent for Message an assistant operation (#19250)

This commit is contained in:
Benjamin Schroth
2025-09-08 11:24:32 +02:00
committed by GitHub
parent 8f99f092ff
commit 70254526bb

View File

@@ -24,6 +24,7 @@ import { getTracingConfig } from '@utils/tracing';
import { formatToOpenAIAssistantTool, getChatMessages } from '../../helpers/utils';
import { assistantRLC } from '../descriptions';
import { getProxyAgent } from '@utils/httpProxyAgent';
const properties: INodeProperties[] = [
assistantRLC,
@@ -193,6 +194,9 @@ export async function execute(this: IExecuteFunctions, i: number): Promise<INode
maxRetries: options.maxRetries ?? 2,
timeout: options.timeout ?? 10000,
baseURL,
fetchOptions: {
dispatcher: getProxyAgent(baseURL),
},
});
const agent = new OpenAIAssistantRunnable({ assistantId, client, asAgent: true });