mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(Anthropic Chat Model Node): Add support for Haiku 3.5 (#11551)
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
/* eslint-disable n8n-nodes-base/node-dirname-against-convention */
|
/* eslint-disable n8n-nodes-base/node-dirname-against-convention */
|
||||||
|
|
||||||
|
import { ChatAnthropic } from '@langchain/anthropic';
|
||||||
|
import type { LLMResult } from '@langchain/core/outputs';
|
||||||
import {
|
import {
|
||||||
NodeConnectionType,
|
NodeConnectionType,
|
||||||
type INodePropertyOptions,
|
type INodePropertyOptions,
|
||||||
@@ -9,8 +12,6 @@ import {
|
|||||||
type SupplyData,
|
type SupplyData,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
import { ChatAnthropic } from '@langchain/anthropic';
|
|
||||||
import type { LLMResult } from '@langchain/core/outputs';
|
|
||||||
import { getConnectionHintNoticeField } from '../../../utils/sharedFields';
|
import { getConnectionHintNoticeField } from '../../../utils/sharedFields';
|
||||||
import { N8nLlmTracing } from '../N8nLlmTracing';
|
import { N8nLlmTracing } from '../N8nLlmTracing';
|
||||||
|
|
||||||
@@ -36,6 +37,10 @@ const modelField: INodeProperties = {
|
|||||||
name: 'Claude 3 Sonnet(20240229)',
|
name: 'Claude 3 Sonnet(20240229)',
|
||||||
value: 'claude-3-sonnet-20240229',
|
value: 'claude-3-sonnet-20240229',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'Claude 3.5 Haiku(20241022)',
|
||||||
|
value: 'claude-3-5-haiku-20241022',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'Claude 3 Haiku(20240307)',
|
name: 'Claude 3 Haiku(20240307)',
|
||||||
value: 'claude-3-haiku-20240307',
|
value: 'claude-3-haiku-20240307',
|
||||||
|
|||||||
Reference in New Issue
Block a user