feat: support Volcengine rerank

This commit is contained in:
KKtwo
2026-07-20 15:55:11 +08:00
committed by lyingbug
parent c387f09add
commit 3011f132e9
15 changed files with 514 additions and 25 deletions
@@ -266,6 +266,7 @@ func TestListByModelType(t *testing.T) {
// Check that Aliyun supports rerank
foundAliyun := false
foundLKEAP := false
foundVolcengine := false
for _, p := range providers {
if p.Name == ProviderAliyun {
foundAliyun = true
@@ -274,9 +275,14 @@ func TestListByModelType(t *testing.T) {
foundLKEAP = true
assert.Equal(t, LKEAPRerankBaseURL, p.GetDefaultURL(types.ModelTypeRerank))
}
if p.Name == ProviderVolcengine {
foundVolcengine = true
assert.Equal(t, VolcengineRerankBaseURL, p.GetDefaultURL(types.ModelTypeRerank))
}
}
assert.True(t, foundAliyun, "Aliyun should support rerank")
assert.True(t, foundLKEAP, "LKEAP should support rerank")
assert.True(t, foundVolcengine, "Volcengine should support rerank")
})
t.Run("embedding models include openrouter", func(t *testing.T) {