From e6c0cb25532a5e939a012dc2ce59dd75cd0ec5ab Mon Sep 17 00:00:00 2001 From: MasonWest <694900844@qq.com> Date: Thu, 25 Jul 2024 17:01:40 +0800 Subject: [PATCH] Adding modle Xunfei4.0 Ultra --- bot/xunfei/xunfei_spark_bot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bot/xunfei/xunfei_spark_bot.py b/bot/xunfei/xunfei_spark_bot.py index 9ca6b964a..5d6a62bc1 100644 --- a/bot/xunfei/xunfei_spark_bot.py +++ b/bot/xunfei/xunfei_spark_bot.py @@ -43,12 +43,14 @@ def __init__(self): # 默认使用v2.0版本: "generalv2" # v1.5版本为 "general" # v3.0版本为: "generalv3" - self.domain = "generalv3" + # v4.0版本为: "4.0Ultra" + self.domain = "4.0Ultra" # 默认使用v2.0版本: "ws://spark-api.xf-yun.com/v2.1/chat" # v1.5版本为: "ws://spark-api.xf-yun.com/v1.1/chat" # v3.0版本为: "ws://spark-api.xf-yun.com/v3.1/chat" # v3.5版本为: "wss://spark-api.xf-yun.com/v3.5/chat" - self.spark_url = "wss://spark-api.xf-yun.com/v3.5/chat" + # v4.0版本为: "wss://spark-api.xf-yun.com/v4.0/chat" + self.spark_url = "wss://spark-api.xf-yun.com/v4.0/chat" self.host = urlparse(self.spark_url).netloc self.path = urlparse(self.spark_url).path # 和wenxin使用相同的session机制