Przeglądaj źródła

更新模型,新增语音模块

GXX 3 miesięcy temu
rodzic
commit
edad5698c7
3 zmienionych plików z 7 dodań i 1 usunięć
  1. 1 1
      chat_model.py
  2. 1 0
      msg_send_save.py
  3. 5 0
      tts.py

+ 1 - 1
chat_model.py

@@ -107,7 +107,7 @@ def groq_chat(messages, model = "deepseek-r1-distill-llama-70b"):
 
     return cleaned_text.strip()
 
-def siliflow_chat(messages, model = "THUDM/glm-4-9b-chat"):
+def siliflow_chat(messages, model = "THUDM/GLM-4-9B-0414"):
     """
     备用对话通道,https://api.siliconflow.cn/v1'
     """

+ 1 - 0
msg_send_save.py

@@ -3,6 +3,7 @@ import datetime
 import os
 import requests
 from config import key_get
+
 def send_private_message_word(user_id,word):
     """
     用来回复私人消息

+ 5 - 0
tts.py

@@ -0,0 +1,5 @@
+import csv
+import datetime
+import os
+import requests
+from config import key_get