Skip to content

Commit 2e7849e

Browse files
authored
Merge pull request #380 from batanus/make-index-optional
2 parents 3fcc656 + 840cb9f commit 2e7849e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenAI/Public/Models/ChatStreamResult.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public struct ChatStreamResult: Codable, Equatable, Sendable {
7171

7272
public struct ChoiceDeltaToolCall: Codable, Equatable, Sendable {
7373

74-
public let index: Int
74+
public let index: Int?
7575
/// The ID of the tool call.
7676
public let id: String?
7777
/// The function that the model called.

0 commit comments

Comments
 (0)