Skip to content

Commit

Permalink
add initializer for ToolCallParam.FunctionCall
Browse files Browse the repository at this point in the history
  • Loading branch information
dounan committed Jan 26, 2025
1 parent 22bb780 commit 578ed12
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/OpenAI/Public/Models/ChatQuery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,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
}
}
}
}
Expand Down

0 comments on commit 578ed12

Please sign in to comment.