Skip to content

Commit 1a4e478

Browse files
Enhanced Google model selection and updated the changelog (#453)
1 parent 99b4d61 commit 1a4e478

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

app/MindWork AI Studio/Provider/Google/ProviderGoogle.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public override async IAsyncEnumerable<ImageURL> StreamImageCompletion(Provider.
9898
return [];
9999

100100
return modelResponse.Models.Where(model =>
101-
model.Name.StartsWith("models/gemini-", StringComparison.OrdinalIgnoreCase))
101+
model.Name.StartsWith("models/gemini-", StringComparison.OrdinalIgnoreCase) && !model.Name.Contains("embed"))
102102
.Select(n => new Provider.Model(n.Name.Replace("models/", string.Empty), n.DisplayName));
103103
}
104104

@@ -115,7 +115,8 @@ public override async IAsyncEnumerable<ImageURL> StreamImageCompletion(Provider.
115115
return [];
116116

117117
return modelResponse.Models.Where(model =>
118-
model.Name.StartsWith("models/text-embedding-", StringComparison.InvariantCultureIgnoreCase))
118+
model.Name.StartsWith("models/text-embedding-", StringComparison.OrdinalIgnoreCase) ||
119+
model.Name.StartsWith("models/gemini-embed", StringComparison.OrdinalIgnoreCase))
119120
.Select(n => new Provider.Model(n.Name.Replace("models/", string.Empty), n.DisplayName));
120121
}
121122

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# v0.9.43, build 218 (2025-05-xx xx:xx UTC)
2-
- Improved the automatic German translation; thanks Peer (`peerschuett`) for contributing.
2+
- Added the ability to select the new Google Gemini embeddings in the embedding configuration.
3+
- Improved the automatic German translation; thanks Peer (`peerschuett`) for contributing.
4+
- Improved Google Gemini LLM model selection by filtering out the new embedding models.

0 commit comments

Comments
 (0)