File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -245,8 +245,10 @@ pub struct ChatCompletionRequestUserMessage {
245
245
#[ builder( build_fn( error = "OpenAIError" ) ) ]
246
246
pub struct ChatCompletionRequestAssistantMessage {
247
247
/// The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
248
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
248
249
pub content : Option < ChatCompletionRequestAssistantMessageContent > ,
249
250
/// The refusal message by the assistant.
251
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
250
252
pub refusal : Option < String > ,
251
253
/// An optional name for the participant. Provides the model information to differentiate between participants of the same role.
252
254
#[ serde( skip_serializing_if = "Option::is_none" ) ]
You can’t perform that action at this time.
0 commit comments