diff --git a/Sources/OpenAI/Public/Models/Chat/ChatTool.swift b/Sources/OpenAI/Public/Models/Chat/ChatTool.swift index 4bdfee5b..3ced74db 100644 --- a/Sources/OpenAI/Public/Models/Chat/ChatTool.swift +++ b/Sources/OpenAI/Public/Models/Chat/ChatTool.swift @@ -181,7 +181,7 @@ public struct ToolCall: Codable, Equatable { } public struct Function : Codable, Equatable { - public let name: String + public let name: String? public let arguments: String? public static func withName(_ name: String, arguments: String? = nil) -> Self {