mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 16:36:53 +08:00
Fix: Make /ai command case-insensitive
Co-authored-by: jxxghp <jxxghp@qq.com>
This commit is contained in:
@@ -943,8 +943,8 @@ class MessageChain(ChainBase):
|
|||||||
return
|
return
|
||||||
|
|
||||||
# 提取用户消息
|
# 提取用户消息
|
||||||
if text.startswith("/ai"):
|
if text.lower().startswith("/ai"):
|
||||||
user_message = text[3:].strip() # 移除 "/ai" 前缀
|
user_message = text[3:].strip() # 移除 "/ai" 前缀(大小写不敏感)
|
||||||
else:
|
else:
|
||||||
user_message = text.strip() # 按原消息处理
|
user_message = text.strip() # 按原消息处理
|
||||||
if not user_message:
|
if not user_message:
|
||||||
|
|||||||
Reference in New Issue
Block a user