mirror of
https://github.com/Zippland/Bubbles.git
synced 2026-01-19 01:21:15 +08:00
新增 Gemini 模型配置及初始化逻辑,更新配置文件以支持 Gemini 的 API 密钥和历史消息数设置,同时优化 ChatType 枚举以包含 Gemini 类型,提升代码的可扩展性和灵活性。
This commit is contained in:
@@ -6,13 +6,15 @@ class ChatType(IntEnum):
|
||||
# UnKnown = 0 # 未知, 即未设置
|
||||
CHATGPT = 1 # ChatGPT
|
||||
DEEPSEEK = 2 # DeepSeek
|
||||
PERPLEXITY = 3 # Perplexity
|
||||
GEMINI = 3 # Gemini
|
||||
PERPLEXITY = 4 # Perplexity
|
||||
|
||||
@staticmethod
|
||||
def is_in_chat_types(chat_type: int) -> bool:
|
||||
if chat_type in [ChatType.CHATGPT.value,
|
||||
ChatType.DEEPSEEK.value,
|
||||
ChatType.PERPLEXITY.value]:
|
||||
ChatType.PERPLEXITY.value,
|
||||
ChatType.GEMINI.value]:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user