长期记忆
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 33s

This commit is contained in:
2026-04-14 20:39:58 +08:00
parent 8dd94c6c19
commit de68916c5a
2 changed files with 130 additions and 54 deletions

View File

@@ -91,13 +91,6 @@ class AIAgentService:
try:
info(f"🔄 正在初始化模型 '{model_name}'...")
llm = llm_creator()
# 测试 LLM 连接(可选,用于调试)
if model_name == "local":
debug(f" 测试 vLLM 连接: {os.getenv('VLLM_BASE_URL', '未设置')}")
elif model_name == "deepseek":
debug(f" 测试 DeepSeek API 连接: https://api.deepseek.com")
builder = GraphBuilder(llm, AVAILABLE_TOOLS, TOOLS_BY_NAME).build()
graph = builder.compile(checkpointer=self.checkpointer, store=self.store)
self.graphs[model_name] = graph