mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
fis: prevent assigning a nullable variable to a non-nullable property
This commit is contained in:
@@ -55,7 +55,10 @@ internal partial class AzureClientCore
|
||||
options.ResponseFormat = responseFormat;
|
||||
}
|
||||
|
||||
options.ToolChoice = toolCallingConfig.Choice;
|
||||
if (toolCallingConfig.Choice is not null)
|
||||
{
|
||||
options.ToolChoice = toolCallingConfig.Choice;
|
||||
}
|
||||
|
||||
if (toolCallingConfig.Tools is { Count: > 0 } tools)
|
||||
{
|
||||
|
||||
@@ -655,7 +655,10 @@ internal partial class ClientCore
|
||||
options.ResponseFormat = responseFormat;
|
||||
}
|
||||
|
||||
options.ToolChoice = toolCallingConfig.Choice;
|
||||
if (toolCallingConfig.Choice is not null)
|
||||
{
|
||||
options.ToolChoice = toolCallingConfig.Choice;
|
||||
}
|
||||
|
||||
if (toolCallingConfig.Tools is { Count: > 0 } tools)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user