This commit is contained in:
jxxghp
2025-11-24 21:29:56 +08:00
parent 840da6dd85
commit 88173db4ce
2 changed files with 0 additions and 13 deletions

View File

@@ -73,8 +73,6 @@ class MoviePilotAgent:
"""初始化LLM模型"""
provider = settings.LLM_PROVIDER.lower()
api_key = settings.LLM_API_KEY
if not api_key:
raise ValueError("未配置 LLM_API_KEY")
if provider == "google":
import os

View File

@@ -925,17 +925,6 @@ class MessageChain(ChainBase):
))
return
# 检查LLM配置
if not settings.LLM_API_KEY:
self.post_message(Notification(
channel=channel,
source=source,
userid=userid,
username=username,
title="MoviePilot智能助未配置请在系统设置中配置"
))
return
# 提取用户消息
user_message = text[3:].strip() # 移除 "/ai" 前缀
if not user_message: