Skip to content

Commit b85257b

Browse files
authored
Optional model in ModifyAssistantRequest (#174)
All fields (including model) are optional in OpenAI API.
1 parent 8426647 commit b85257b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

async-openai/src/types/assistant.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ pub struct CreateAssistantRequest {
9494
#[builder(derive(Debug))]
9595
#[builder(build_fn(error = "OpenAIError"))]
9696
pub struct ModifyAssistantRequest {
97-
pub model: String,
97+
#[serde(skip_serializing_if = "Option::is_none")]
98+
pub model: Option<String>,
9899

99100
#[serde(skip_serializing_if = "Option::is_none")]
100101
pub name: Option<String>,

0 commit comments

Comments
 (0)