mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat: Add HTTP proxy for supported LLM nodes (#15449)
This commit is contained in:
@@ -9,6 +9,8 @@ import type {
|
||||
ILoadOptionsFunctions,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { getHttpProxyAgent } from '@utils/httpProxyAgent';
|
||||
|
||||
import { makeN8nLlmFailedAttemptHandler } from '../n8nLlmFailedAttemptHandler';
|
||||
import { N8nLlmTracing } from '../N8nLlmTracing';
|
||||
|
||||
@@ -248,7 +250,9 @@ export class LmOpenAi implements INodeType {
|
||||
topP?: number;
|
||||
};
|
||||
|
||||
const configuration: ClientOptions = {};
|
||||
const configuration: ClientOptions = {
|
||||
httpAgent: getHttpProxyAgent(),
|
||||
};
|
||||
if (options.baseURL) {
|
||||
configuration.baseURL = options.baseURL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user