Skip to content

Commit ae0fd3d

Browse files
committed
Fix reasoning output in Responses
1 parent 69e4551 commit ae0fd3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/OpenAI/Responses/ResponsesResponse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public extension Responses {
215215
/// turns of a conversation if you are manually managing context.
216216
public struct ReasoningOutput: Decodable, Sendable {
217217
/// Reasoning text content.
218-
public let content: [Content]
218+
public let content: [Content]?
219219

220220
/// The encrypted content of the reasoning item - populated when a response is
221221
/// generated with `reasoning.encrypted_content` in the `include` parameter.

0 commit comments

Comments
 (0)