mirror of
https://github.com/Zippland/Bubbles.git
synced 2026-01-19 01:21:15 +08:00
24 lines
692 B
Python
24 lines
692 B
Python
from enum import IntEnum, unique
|
|
|
|
|
|
@unique
|
|
class ChatType(IntEnum):
|
|
# UnKnown = 0 # 未知, 即未设置
|
|
CHATGPT = 1 # ChatGPT
|
|
DEEPSEEK = 2 # DeepSeek
|
|
KIMI = 3 # Kimi (Moonshot)
|
|
PERPLEXITY = 4 # Perplexity
|
|
|
|
@staticmethod
|
|
def is_in_chat_types(chat_type: int) -> bool:
|
|
if chat_type in [ChatType.CHATGPT.value,
|
|
ChatType.DEEPSEEK.value,
|
|
ChatType.KIMI.value,
|
|
ChatType.PERPLEXITY.value]:
|
|
return True
|
|
return False
|
|
|
|
@staticmethod
|
|
def help_hint() -> str:
|
|
return str({member.value: member.name for member in ChatType}).replace('{', '').replace('}', '')
|