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.
main
MEKXH 2026-01-23 22:00:47 +08:00 committed by lyingbug
parent de06bb24d3
commit 467ac01384
1 changed files with 1 additions and 1 deletions

View File

@ -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"
)