This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user