Support Spark4.0 Ultra model, optimize model configuration. #2198
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
支持了讯飞Spark4.0 Ultra模型,并优化了讯飞模型配置的方式,在根目录的配置文件配置如下参数:
{
"xunfei_app_id": "f75345dc",
"xunfei_api_key": "035cac614a5074771",
"xunfei_api_secret": "ZTc5NmY0dl5ODE3OTcyMGJi",
"xunfei_domain": "4.0Ultra",
"xunfei_spark_url": "wss://spark-api.xf-yun.com/v4.0/chat",
}
"xunfei_app_id"
:应用创建及参数获取参考: 讯飞平台简介"xunfei_domain"
: 讯飞模型对应的domain参数,Spark4.0 Ultra为4.0Ultra
,其他模型详见: 星火认知大模型Web API文档"xunfei_spark_url"
: 讯飞模型对应的请求地址,Spark4.0 Ultra为wss://spark-api.xf-yun.com/v4.0/chat
,其他模型参考详见: 星火认知大模型Web API文档