fix(embedding): support native Gemini embeddings

This commit is contained in:
Yeongpil Yoon
2026-06-02 17:32:29 +09:00
committed by lyingbug
parent 482686d17e
commit 8f8a276120
8 changed files with 364 additions and 6 deletions
+16
View File
@@ -256,4 +256,20 @@ func TestListByModelType(t *testing.T) {
assert.True(t, found, "OpenRouter should support embedding")
})
t.Run("embedding models include gemini", func(t *testing.T) {
providers := ListByModelType(types.ModelTypeEmbedding)
assert.NotEmpty(t, providers)
found := false
for _, p := range providers {
if p.Name == ProviderGemini {
found = true
assert.Equal(t, GeminiBaseURL, p.GetDefaultURL(types.ModelTypeEmbedding))
break
}
}
assert.True(t, found, "Gemini should support embedding via the native Gemini API")
})
}