feat: 兼容旧版的动态选择模型

This commit is contained in:
touer angler
2023-11-16 16:25:01 +08:00
parent 8cdeb22846
commit 4477267744
5 changed files with 88 additions and 38 deletions

10
constants.py Normal file
View File

@@ -0,0 +1,10 @@
from enum import IntEnum, unique
@unique
class ChatType(IntEnum):
UnKnown = 0 # 未知, 即未设置
TIGER_BOT = 1 # TigerBot
CHATGPT = 2 # ChatGPT
XINGHUO_WEB = 3 # 讯飞星火
ChatGLM = 4 # ChatGLM