Skip to content

Commit

Permalink
[Vertex AI] Add default nil for FunctionDeclaration `requiredPara…
Browse files Browse the repository at this point in the history
…meters` (#12902)
  • Loading branch information
andrewheard authored May 6, 2024
1 parent c88763e commit b5eef81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FirebaseVertexAI/Sources/FunctionCalling.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public struct FunctionDeclaration {
/// the values are ``Schema`` objects describing them.
/// - requiredParameters: A list of required parameters by name.
public init(name: String, description: String, parameters: [String: Schema]?,
requiredParameters: [String]?) {
requiredParameters: [String]? = nil) {
self.name = name
self.description = description
self.parameters = Schema(
Expand Down

0 comments on commit b5eef81

Please sign in to comment.