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
parent
de06bb24d3
commit
467ac01384
|
|
@ -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"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue