|
@@ -99,7 +99,8 @@ class Role(Plugin): |
|
|
if e_context["context"].type != ContextType.TEXT: |
|
|
if e_context["context"].type != ContextType.TEXT: |
|
|
return |
|
|
return |
|
|
btype = Bridge().get_bot_type("chat") |
|
|
btype = Bridge().get_bot_type("chat") |
|
|
if btype not in [const.OPEN_AI, const.CHATGPT, const.CHATGPTONAZURE, const.LINKAI]: |
|
|
|
|
|
|
|
|
if btype not in [const.OPEN_AI, const.CHATGPT, const.CHATGPTONAZURE, const.QWEN_DASHSCOPE, const.XUNFEI, const.BAIDU, const.ZHIPU_AI, const.MOONSHOT, const.MiniMax]: |
|
|
|
|
|
logger.warn(f'不支持的bot: {btype}') |
|
|
return |
|
|
return |
|
|
bot = Bridge().get_bot("chat") |
|
|
bot = Bridge().get_bot("chat") |
|
|
content = e_context["context"].content[:] |
|
|
content = e_context["context"].content[:] |
|
|