Skip to content

Commit

Permalink
fix: optional name
Browse files Browse the repository at this point in the history
Signed-off-by: rawnly <[email protected]>
  • Loading branch information
rawnly committed Nov 19, 2023
1 parent 5e90958 commit dabc66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/OpenAI/Public/Models/Chat/ChatTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dabc66e

Please sign in to comment.