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

@@ -22,7 +22,7 @@ import { LLMChain } from 'langchain/chains';
import type { BaseChatModel } from '@langchain/core/language_models/chat_models';
import { HumanMessage } from '@langchain/core/messages';
import { ChatGoogleGenerativeAI } from '@langchain/google-genai';
import { ChatOllama } from '@langchain/community/chat_models/ollama';
import { ChatOllama } from '@langchain/ollama';
import { getTemplateNoticeField } from '../../../utils/sharedFields';
import {
getOptionalOutputParsers,