refactor: Update Langchain modules & add Ollama tools support (#10208)

This commit is contained in:
oleg
2024-07-26 14:30:33 +02:00
committed by GitHub
parent 8ef0a0c58a
commit 5a51b1db5e
6 changed files with 296 additions and 534 deletions

View File

@@ -7,8 +7,8 @@ import {
type SupplyData,
} from 'n8n-workflow';
import type { ChatOllamaInput } from '@langchain/community/chat_models/ollama';
import { ChatOllama } from '@langchain/community/chat_models/ollama';
import type { ChatOllamaInput } from '@langchain/ollama';
import { ChatOllama } from '@langchain/ollama';
import { getConnectionHintNoticeField } from '../../../utils/sharedFields';
import { ollamaModel, ollamaOptions, ollamaDescription } from '../LMOllama/description';
import { N8nLlmTracing } from '../N8nLlmTracing';