依存関係の更新
parent
1487e12d24
commit
4d80d51040
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue