Enhanced Google model selection and updated the changelog (#453)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2025-05-11 15:01:04 +02:00
1 parent 99b4d616c7
commit 1a4e4781cd
2 files changed
+6 -3

No files matched your search

@@ -98,7 +98,7 @@ public class ProviderGoogle(ILogger logger) : BaseProvider("https://generativela
return [];
return modelResponse.Models.Where(model =>
model.Name.StartsWith("models/gemini-", StringComparison.OrdinalIgnoreCase))
model.Name.StartsWith("models/gemini-", StringComparison.OrdinalIgnoreCase) && !model.Name.Contains("embed"))
.Select(n => new Provider.Model(n.Name.Replace("models/", string.Empty), n.DisplayName));
}
@@ -115,7 +115,8 @@ public class ProviderGoogle(ILogger logger) : BaseProvider("https://generativela
return [];
return modelResponse.Models.Where(model =>
model.Name.StartsWith("models/text-embedding-", StringComparison.InvariantCultureIgnoreCase))
model.Name.StartsWith("models/text-embedding-", StringComparison.OrdinalIgnoreCase) ||
model.Name.StartsWith("models/gemini-embed", StringComparison.OrdinalIgnoreCase))
.Select(n => new Provider.Model(n.Name.Replace("models/", string.Empty), n.DisplayName));
}
@@ -1,2 +1,4 @@
# v0.9.43, build 218 (2025-05-xx xx:xx UTC)
- Improved the automatic German translation; thanks Peer (`peerschuett`) for contributing.
- Added the ability to select the new Google Gemini embeddings in the embedding configuration.
- Improved the automatic German translation; thanks Peer (`peerschuett`) for contributing.
- Improved Google Gemini LLM model selection by filtering out the new embedding models.