From 467ac013847b1f5e93d61aa4e65e0404e50ce03d Mon Sep 17 00:00:00 2001 From: MEKXH <2408131017@qq.com> Date: Fri, 23 Jan 2026 22:00:47 +0800 Subject: [PATCH] fix(zhipu): correct Embedding BaseURL to match API structure Remove '/embeddings' suffix from ZhipuEmbeddingBaseURL to align with Chat and Rerank BaseURL patterns. The OpenAIEmbedder automatically appends '/embeddings' to the baseURL, so including it in the constant would result in duplicate '/embeddings/embeddings' in the final URL. --- internal/models/provider/zhipu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/models/provider/zhipu.go b/internal/models/provider/zhipu.go index ac1433ff..aecdc8da 100644 --- a/internal/models/provider/zhipu.go +++ b/internal/models/provider/zhipu.go @@ -10,7 +10,7 @@ const ( // ZhipuChatBaseURL 智谱 AI Chat 的默认 BaseURL ZhipuChatBaseURL = "https://open.bigmodel.cn/api/paas/v4" // ZhipuEmbeddingBaseURL 智谱 AI Embedding 的默认 BaseURL - ZhipuEmbeddingBaseURL = "https://open.bigmodel.cn/api/paas/v4/embeddings" + ZhipuEmbeddingBaseURL = "https://open.bigmodel.cn/api/paas/v4" // ZhipuRerankBaseURL 智谱 AI Rerank 的默认 BaseURL ZhipuRerankBaseURL = "https://open.bigmodel.cn/api/paas/v4/rerank" )