Add Google Bard

This commit is contained in:
aki66938
2023-12-14 09:46:04 +08:00
parent 8f5a0d9d61
commit c653cda0ff
6 changed files with 49 additions and 1 deletions

View File

@@ -8,11 +8,12 @@ class ChatType(IntEnum):
CHATGPT = 2 # ChatGPT
XINGHUO_WEB = 3 # 讯飞星火
CHATGLM = 4 # ChatGLM
BardAssistant = 5 # Google Bard
@staticmethod
def is_in_chat_types(chat_type: int) -> bool:
if chat_type in [ChatType.TIGER_BOT.value, ChatType.CHATGPT.value,
ChatType.XINGHUO_WEB.value, ChatType.CHATGLM.value]:
ChatType.XINGHUO_WEB.value, ChatType.CHATGLM.value,ChatType.BardAssistant.value]:
return True
return False