fix: role,dungeon,godcmd support azure bot

This commit is contained in:
lanvent
2023-04-26 01:05:23 +08:00
parent 38c653d8d8
commit 8781b1e976
3 changed files with 5 additions and 5 deletions

View File

@@ -98,8 +98,8 @@ class Role(Plugin):
def on_handle_context(self, e_context: EventContext):
if e_context["context"].type != ContextType.TEXT:
return
bottype = Bridge().get_bot_type("chat")
if bottype not in (const.CHATGPT, const.OPEN_AI):
btype = Bridge().get_bot_type("chat")
if btype not in [const.OPEN_AI, const.CHATGPT, const.CHATGPTONAZURE]:
return
bot = Bridge().get_bot("chat")
content = e_context["context"].content[:]