Skip to content

Commit 64c7274

Browse files
committed
Add public init for Responses.Body.Input
1 parent 81bb9d4 commit 64c7274

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Sources/OpenAI/Responses/ResponsesBody.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ public extension Responses {
130130
/// Text, image, or audio input to the model, used to generate a response. Can also contain
131131
/// previous assistant responses.
132132
public let content: [Content]
133+
134+
public init(role: Role, content: [Content]) {
135+
self.role = role
136+
self.content = content
137+
}
133138
}
134139
}
135140
}

0 commit comments

Comments
 (0)