Skip to content

Commit

Permalink
feat: 支持讯飞星火v3.0 [功能请求]: 什么时候支持讯飞星火认知大模型3.0? #925
Browse files Browse the repository at this point in the history
  • Loading branch information
GaiZhenbiao committed Nov 3, 2023
1 parent f9abb09 commit 69f0c41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/models/spark.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def __init__(self, model_name, appid, api_key, api_secret, user_name="") -> None
if "2.0" in self.model_name:
self.spark_url = "wss://spark-api.xf-yun.com/v2.1/chat"
self.domain = "generalv2"
if "3.0" in self.model_name:
self.spark_url = "wss://spark-api.xf-yun.com/v3.1/chat"
self.domain = "generalv3"
else:
self.spark_url = "wss://spark-api.xf-yun.com/v1.1/chat"
self.domain = "general"
Expand Down
1 change: 1 addition & 0 deletions modules/presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"yuanai-1.0-rhythm_poems",
"minimax-abab5-chat",
"midjourney",
"讯飞星火大模型V3.0",
"讯飞星火大模型V2.0",
"讯飞星火大模型V1.5",
"Claude"
Expand Down

0 comments on commit 69f0c41

Please sign in to comment.