File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
dotnet/src/Connectors/Connectors.MistralAI Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ internal sealed class ChatCompletionRequest
30
30
public bool Stream { get ; set ; } = false ;
31
31
32
32
[ JsonPropertyName ( "safe_prompt" ) ]
33
- public bool SafePrompt { get ; set ; } = false ;
33
+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
34
+ public bool ? SafePrompt { get ; set ; } = false ;
34
35
35
36
[ JsonPropertyName ( "tools" ) ]
36
37
[ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public int? MaxTokens
78
78
/// </summary>
79
79
[ JsonPropertyName ( "safe_prompt" ) ]
80
80
[ JsonConverter ( typeof ( BoolJsonConverter ) ) ]
81
- public bool SafePrompt
81
+ public bool ? SafePrompt
82
82
{
83
83
get => this . _safePrompt ;
84
84
@@ -338,7 +338,7 @@ public static MistralAIPromptExecutionSettings FromExecutionSettings(PromptExecu
338
338
private double _temperature = 0.7 ;
339
339
private double _topP = 1 ;
340
340
private int ? _maxTokens ;
341
- private bool _safePrompt = false ;
341
+ private bool ? _safePrompt = false ;
342
342
private int ? _randomSeed ;
343
343
private string _apiVersion = "v1" ;
344
344
private MistralAIToolCallBehavior ? _toolCallBehavior ;
You can’t perform that action at this time.
0 commit comments