diff --git a/async-openai/src/types/chat.rs b/async-openai/src/types/chat.rs index d9373db6..5773689a 100644 --- a/async-openai/src/types/chat.rs +++ b/async-openai/src/types/chat.rs @@ -989,7 +989,7 @@ pub struct FunctionCallStream { #[derive(Debug, Deserialize, Serialize, Clone, PartialEq)] pub struct ChatCompletionMessageToolCallChunk { - pub index: u32, + pub index: Option, /// The ID of the tool call. pub id: Option, /// The type of the tool. Currently, only `function` is supported.