mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-07-04 13:02:57 +00:00
Enhanced Google model selection and updated the changelog (#453)
This commit is contained in:
parent
99b4d616c7
commit
1a4e4781cd
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
- 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 the automatic German translation; thanks Peer (`peerschuett`) for contributing.
|
||||||
|
- Improved Google Gemini LLM model selection by filtering out the new embedding models.
|
Loading…
Reference in New Issue
Block a user