fix: correct missing dependencies in requirements.txt and imports
This commit is contained in:
@@ -8,18 +8,3 @@ prompt = ChatPromptTemplate.from_messages([
|
||||
# 格式化输出
|
||||
formatted_prompt = prompt.invoke({"input":"你好喵"})
|
||||
print(formatted_prompt)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# 目前:已经测试到05_文件夹,代码测试完毕能跑通,但新旧写法尚未确定,明天要改写法+改博客
|
||||
|
||||
from config import OPENAI_API_KEY
|
||||
from langchain_openai import ChatOpenAI
|
||||
from langchain_classic.agents import AgentExecutor
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.6 KiB |
@@ -3,7 +3,7 @@ from config import OPENAI_API_KEY,LANGCHAIN_API_KEY
|
||||
from langchain_openai import ChatOpenAI
|
||||
from langchain.tools import tool
|
||||
from langchain_core.messages import HumanMessage, SystemMessage
|
||||
from langgraph.graph import StateGraph, MessagesState, START, END
|
||||
from langgraph.graph import StateGraph, START, END
|
||||
from langgraph.prebuilt import ToolNode
|
||||
from typing import TypedDict # 定义数据类型
|
||||
from typing import Annotated # 注释说明细节
|
||||
|
||||
+6
-6
@@ -1,14 +1,14 @@
|
||||
huggingface_hub==0.36.0
|
||||
langchain==1.0.7
|
||||
huggingface_hub==1.1.5
|
||||
langchain==1.1.0
|
||||
langchain_chroma==1.0.0
|
||||
langchain_classic==1.0.0
|
||||
langchain_community==0.4.1
|
||||
langchain_core==1.0.5
|
||||
langchain_core==1.1.0
|
||||
langchain_huggingface==1.0.1
|
||||
langchain_openai==1.0.3
|
||||
langchain_text_splitters==1.0.0
|
||||
langgraph==1.0.3
|
||||
langsmith==0.4.43
|
||||
openai==2.8.0
|
||||
langgraph==1.0.4
|
||||
langsmith==0.4.46
|
||||
openai==2.8.1
|
||||
python-dotenv==1.2.1
|
||||
Requests==2.32.5
|
||||
Reference in New Issue
Block a user