Skip to content

Commit 5f05c8f

Browse files
authored
Merge pull request #248 from dounan/bug/add-initializer-to-function-call
Bug: Add initializer for ToolCallParam.FunctionCall
2 parents 989df7b + 578ed12 commit 5f05c8f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Sources/OpenAI/Public/Models/ChatQuery.swift

+8
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,14 @@ public struct ChatQuery: Equatable, Codable, Streamable {
582582
public let arguments: String
583583
/// The name of the function to call.
584584
public let name: String
585+
586+
public init(
587+
arguments: String,
588+
name: String
589+
) {
590+
self.arguments = arguments
591+
self.name = name
592+
}
585593
}
586594
}
587595
}

0 commit comments

Comments
 (0)