@@ -30,5 +30,32 @@ public class MessageInput: DynamicModel<object>
30
30
/// </summary>
31
31
[ JsonProperty ( "text" , NullValueHandling = NullValueHandling . Ignore ) ]
32
32
public string Text { get ; set ; }
33
+ /// <summary>
34
+ /// Whether to use spelling correction when processing the input. This property overrides the value of the
35
+ /// **spelling_suggestions** property in the workspace settings.
36
+ /// </summary>
37
+ [ JsonProperty ( "spelling_suggestions" , NullValueHandling = NullValueHandling . Ignore ) ]
38
+ public bool ? SpellingSuggestions { get ; set ; }
39
+ /// <summary>
40
+ /// Whether to use autocorrection when processing the input. If spelling correction is used and this property is
41
+ /// `false`, any suggested corrections are returned in the **suggested_text** property of the message response.
42
+ /// If this property is `true`, any corrections are automatically applied to the user input, and the original
43
+ /// text is returned in the **original_text** property of the message response. This property overrides the
44
+ /// value of the **spelling_auto_correct** property in the workspace settings.
45
+ /// </summary>
46
+ [ JsonProperty ( "spelling_auto_correct" , NullValueHandling = NullValueHandling . Ignore ) ]
47
+ public bool ? SpellingAutoCorrect { get ; set ; }
48
+ /// <summary>
49
+ /// Any suggested corrections of the input text. This property is returned only if spelling correction is
50
+ /// enabled and autocorrection is disabled.
51
+ /// </summary>
52
+ [ JsonProperty ( "suggested_text" , NullValueHandling = NullValueHandling . Ignore ) ]
53
+ public virtual string SuggestedText { get ; private set ; }
54
+ /// <summary>
55
+ /// The original user input text. This property is returned only if autocorrection is enabled and the user input
56
+ /// was corrected.
57
+ /// </summary>
58
+ [ JsonProperty ( "original_text" , NullValueHandling = NullValueHandling . Ignore ) ]
59
+ public virtual string OriginalText { get ; private set ; }
33
60
}
34
61
}
0 commit comments