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 {
245245#[ builder( build_fn( error = "OpenAIError" ) ) ]
246246pub struct ChatCompletionRequestAssistantMessage {
247247 /// The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
248+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
248249 pub content : Option < ChatCompletionRequestAssistantMessageContent > ,
249250 /// The refusal message by the assistant.
251+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
250252 pub refusal : Option < String > ,
251253 /// An optional name for the participant. Provides the model information to differentiate between participants of the same role.
252254 #[ serde( skip_serializing_if = "Option::is_none" ) ]
You can’t perform that action at this time.
0 commit comments