diff --git a/Sources/OpenAI/Public/Models/ChatQuery.swift b/Sources/OpenAI/Public/Models/ChatQuery.swift index f2f1a98c..059adc08 100644 --- a/Sources/OpenAI/Public/Models/ChatQuery.swift +++ b/Sources/OpenAI/Public/Models/ChatQuery.swift @@ -502,6 +502,14 @@ public struct ChatQuery: Equatable, Codable, Streamable { public let arguments: String /// The name of the function to call. public let name: String + + public init( + arguments: String, + name: String + ) { + self.arguments = arguments + self.name = name + } } } }