mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor(Basic LLM Chain Node): Refactor Basic LLM Chain & add tests (#13850)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable n8n-nodes-base/node-dirname-against-convention */
|
||||
import { ChatOpenAI } from '@langchain/openai';
|
||||
import { AzureChatOpenAI } from '@langchain/openai';
|
||||
import {
|
||||
NodeConnectionType,
|
||||
type INodeType,
|
||||
@@ -184,7 +184,7 @@ export class LmChatAzureOpenAi implements INodeType {
|
||||
responseFormat?: 'text' | 'json_object';
|
||||
};
|
||||
|
||||
const model = new ChatOpenAI({
|
||||
const model = new AzureChatOpenAI({
|
||||
azureOpenAIApiDeploymentName: modelName,
|
||||
// instance name only needed to set base url
|
||||
azureOpenAIApiInstanceName: !credentials.endpoint ? credentials.resourceName : undefined,
|
||||
|
||||
Reference in New Issue
Block a user