依存関係の更新

main
NON906 2024-06-19 14:03:38 +09:00
parent 1487e12d24
commit 4d80d51040
2 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,9 @@ if not launch.is_installed('langchain'):
#if not launch.is_installed('langchainhub'):
# launch.run_pip('install langchainhub', 'langchainhub')
if not launch.is_installed('langchain_community'):
launch.run_pip('install langchain_community', 'langchain_community')
if not launch.is_installed('gpt4all'):
launch.run_pip('install gpt4all', 'gpt4all')

View File

@ -8,7 +8,8 @@ import re
import asyncio
#from gpt_stream_parser import force_parse_json
from langchain_community.llms import GPT4All, LlamaCpp
from langchain.memory import ConversationBufferMemory, ChatMessageHistory
from langchain.memory import ConversationBufferMemory
from langchain_community.chat_message_histories import ChatMessageHistory
from langchain.schema import (
AIMessage,
HumanMessage,