File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import Foundation
1010/// A struct that represents a chat completion response.
1111public struct ChatCompletion : Decodable , Sendable {
1212 /// A unique identifier for the chat completion.
13- public let id : String
13+ public let id : String ?
1414
1515 /// An array of chat completion choices. Can be more than one if `n` is greater than 1.
1616 public let choices : [ Choice ]
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import Foundation
1010/// A struct that represents a streamed chunk of a chat completion response.
1111public struct ChatCompletionChunk : Decodable , Sendable {
1212 /// A unique identifier for the chat completion. Each chunk has the same identifier.
13- public let id : String
13+ public let id : String ?
1414
1515 /// An array of chat completion choices. Can contain more than one elements if `n` is greater than 1.
1616 public var choices : [ Choice ]
You can’t perform that action at this time.
0 commit comments