Optimized pattern matching

This commit is contained in:
Thorsten Sommer 2025-11-13 17:21:42 +01:00
parent 9eaade300a
commit 9a6d97f385
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -66,7 +66,7 @@ public sealed class ProviderMistral() : BaseProvider("https://api.mistral.ai/v1/
// Right now, we only support streaming completions: // Right now, we only support streaming completions:
Stream = true, Stream = true,
SafePrompt = apiParameters.TryGetValue("safe_prompt", out var value) && value is bool and true, SafePrompt = apiParameters.TryGetValue("safe_prompt", out var value) && value is true,
AdditionalApiParameters = apiParameters AdditionalApiParameters = apiParameters
}, JSON_SERIALIZER_OPTIONS); }, JSON_SERIALIZER_OPTIONS);