feat: milvus0.1s延迟初始化,添加langgraph/setup接口
This commit is contained in:
@@ -11,6 +11,12 @@ from app.utils.postgres_checkpointer import AsyncPostgresSaverDep
|
||||
|
||||
|
||||
def add_langgraph_route(app: FastAPI):
|
||||
# @app.get("/langgraph/setup")
|
||||
# async def langgraph_invoke(checkpointer: AsyncPostgresSaverDep):
|
||||
# print("checkpointer", checkpointer)
|
||||
# await checkpointer.setup()
|
||||
# return {"result": "LangGraph: Postgres初始化完毕"}
|
||||
|
||||
@app.get("/langgraph/invoke")
|
||||
async def langgraph_invoke(thread_id: str, checkpointer: AsyncPostgresSaverDep):
|
||||
print("checkpointer", checkpointer)
|
||||
|
||||
Reference in New Issue
Block a user