Improve model selection for OpenAI by excluding unsupported o1-pro models

This commit is contained in:
Thorsten Sommer 2025-05-01 13:34:16 +02:00
parent 08b8f42c25
commit 296fb17387
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 3 additions and 1 deletions

View File

@ -127,7 +127,8 @@ public sealed class ProviderOpenAI(ILogger logger) : BaseProvider("https://api.o
!model.Id.Contains("realtime", StringComparison.OrdinalIgnoreCase) &&
!model.Id.Contains("audio", StringComparison.OrdinalIgnoreCase) &&
!model.Id.Contains("tts", StringComparison.OrdinalIgnoreCase) &&
!model.Id.Contains("transcribe", StringComparison.OrdinalIgnoreCase));
!model.Id.Contains("transcribe", StringComparison.OrdinalIgnoreCase) &&
!model.Id.Contains("o1-pro", StringComparison.OrdinalIgnoreCase));
}
/// <inheritdoc />

View File

@ -1,4 +1,5 @@
# v0.9.42, build 217 (2025-05-xx xx:xx UTC)
- Improved the model selection for OpenAI by removing all `o1-pro` models. These models cannot be used right now, since OpenAI introduced a new API, which is not yet supported by MindWork AI Studio.
- Fixed an issue where empty lines in source code were being ignored by the Markdown renderer. Thanks My Nihongo for fixing this bug in the `MudBlazor.Markdown` repository.
- Fixed the localization assistant not being able to load the localization file when used in the release app.
- Upgraded .NET dependencies.