mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat: Add HTTP proxy for supported LLM nodes (#15449)
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
type SupplyData,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { getHttpProxyAgent } from '@utils/httpProxyAgent';
|
||||
import { getConnectionHintNoticeField } from '@utils/sharedFields';
|
||||
|
||||
import { openAiFailedAttemptHandler } from '../../vendors/OpenAi/helpers/error-handling';
|
||||
@@ -227,6 +228,7 @@ export class LmChatOpenRouter implements INodeType {
|
||||
|
||||
const configuration: ClientOptions = {
|
||||
baseURL: credentials.url,
|
||||
httpAgent: getHttpProxyAgent(),
|
||||
};
|
||||
|
||||
const model = new ChatOpenAI({
|
||||
|
||||
Reference in New Issue
Block a user