feat(embedding): 接入阿里云多模态向量端点

This commit is contained in:
Entropy.Xu
2026-05-28 16:05:36 +08:00
parent 535039c29e
commit 0f6d4b9146
56 changed files with 1605 additions and 42 deletions
@@ -225,7 +225,7 @@ fn endpoint_kind_allows_embedding(endpoint_kind: Option<&str>) -> bool {
.map(|value| {
matches!(
value.to_ascii_lowercase().as_str(),
"embedding" | "embeddings"
"embedding" | "embeddings" | "multimodal_embedding" | "multimodal_embeddings"
)
})
.unwrap_or(true)
@@ -348,10 +348,13 @@ mod tests {
("jina", "jina:embedding"),
("doubao", "doubao:embedding"),
("volcengine", "doubao:embedding"),
("aliyun", "aliyun:multimodal_embedding"),
("dashscope", "aliyun:multimodal_embedding"),
("custom", "openai:embedding"),
("custom", "gemini:embedding"),
("custom", "jina:embedding"),
("custom", "doubao:embedding"),
("custom", "aliyun:multimodal_embedding"),
] {
let transport = sample_transport(provider_type, api_format, Some("embedding"));
assert_eq!(