添加腾讯混元大模型支持

This commit is contained in:
junleea 2025-05-12 12:11:44 +08:00
parent 853cd35dcc
commit de7ed81607
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -3,6 +3,7 @@ package service
import (
"StuAcaWorksAI/dao"
"StuAcaWorksAI/proto"
"StuAcaWorksAI/service/generalModel"
"StuAcaWorksAI/worker"
"context"
"encoding/json"
@ -138,6 +139,8 @@ func WSReceiveMessageServiceV2(modelParam proto.ModelParam, ctx *proto.IMParamCo
Qianfan(modelParam, ctx)
case proto.ModelTypeTongyi:
Tongyi(modelParam, ctx)
case proto.ModelTypeHuanyun:
generalModel.OpenAI(modelParam, ctx, ctx.ModelType)
default:
resErr, resID = errors.New("model type not exist:"+ctx.ModelType), 0
}