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

This commit is contained in:
Thorsten Sommer 2025-05-11 15:01:04 +02:00 committed by GitHub
parent 99b4d616c7
commit 1a4e4781cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -98,7 +98,7 @@ public class ProviderGoogle(ILogger logger) : BaseProvider("https://generativela
return []; return [];
return modelResponse.Models.Where(model => 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)); .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 [];
return modelResponse.Models.Where(model => 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)); .Select(n => new Provider.Model(n.Name.Replace("models/", string.Empty), n.DisplayName));
} }

View File

@ -1,2 +1,4 @@
# v0.9.43, build 218 (2025-05-xx xx:xx UTC) # 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.