Merge branch 'refs/heads/feat-ali-tongyi'

This commit is contained in:
junleea 2025-05-12 13:35:25 +08:00
commit 51d515ff97
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ const (
ModelTypeOllama = "ollama"
ModelTypeQianfan = "qianfan"
ModelTypeTongyi = "tongyi"
ModelTypeHuanyun = "huanyun"
ModelTypeHunyuan = "hunyuan"
KnowledgeBaseServerResponseType = "kbase_query_resp"
)

View File

@ -172,7 +172,7 @@ func WSReceiveMessageServiceV2(modelParam proto.ModelParam, ctx *proto.IMParamCo
Qianfan(modelParam, ctx)
case proto.ModelTypeTongyi:
Tongyi(modelParam, ctx)
case proto.ModelTypeHuanyun:
case proto.ModelTypeHunyuan:
generalModel.OpenAI(modelParam, ctx, ctx.ModelType)
default:
resErr, resID = errors.New("model type not exist:"+ctx.ModelType), 0