From c41d72d8501e4118dca86af977a1f665ef8942d2 Mon Sep 17 00:00:00 2001 From: GAI Group <133845290+AI-ASS@users.noreply.github.com> Date: Wed, 17 Jan 2024 03:36:03 +0800 Subject: [PATCH] chore: update to zhipu v4 endpoint chore: update to zhipu v4 endpoint --- relay/controller/text.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/controller/text.go b/relay/controller/text.go index b17ff950..bdd8b9fb 100644 --- a/relay/controller/text.go +++ b/relay/controller/text.go @@ -191,7 +191,7 @@ func RelayTextHelper(c *gin.Context, relayMode int) *openai.ErrorWithStatusCode if textRequest.Stream { method = "sse-invoke" } - fullRequestURL = fmt.Sprintf("https://open.bigmodel.cn/api/paas/v3/model-api/%s/%s", textRequest.Model, method) + fullRequestURL = fmt.Sprintf("https://open.bigmodel.cn/api/paas/v4/model-api/%s/%s", textRequest.Model, method) case APITypeAli: fullRequestURL = "https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation" if relayMode == constant.RelayModeEmbeddings {