Update embedding model

This commit is contained in:
2026-03-18 23:01:41 +00:00
parent fef54f8cf3
commit aaa01e84b9

View File

@@ -22,8 +22,7 @@ public class RecipeService : IRecipeService
public async Task<Vector> GetEmbeddingAsync(string text)
{
var model = _googleAI.GenerativeModel("embedding-001");
var model = _googleAI.GenerativeModel("gemini-embedding-001");
var response = await model.EmbedContent(text);
if (response.Embedding?.Values != null)