From 634d674bf61f4342b404f73b9de1c1b26e738bf3 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Mon, 12 May 2025 13:35:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B7=B7=E5=85=83=E6=8B=BC?= =?UTF-8?q?=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proto/status.go | 2 +- service/imService.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/proto/status.go b/proto/status.go index cf1fbe2..7b07867 100644 --- a/proto/status.go +++ b/proto/status.go @@ -146,7 +146,7 @@ const ( ModelTypeOllama = "ollama" ModelTypeQianfan = "qianfan" ModelTypeTongyi = "tongyi" - ModelTypeHuanyun = "huanyun" + ModelTypeHunyuan = "hunyuan" KnowledgeBaseServerResponseType = "kbase_query_resp" ) diff --git a/service/imService.go b/service/imService.go index 86054c1..81e0630 100644 --- a/service/imService.go +++ b/service/imService.go @@ -139,7 +139,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