Skip to content

Commit

Permalink
Merge pull request #248 from dounan/bug/add-initializer-to-function-call
Browse files Browse the repository at this point in the history
Bug: Add initializer for ToolCallParam.FunctionCall
  • Loading branch information
nezhyborets authored Jan 30, 2025
2 parents 989df7b + 578ed12 commit 5f05c8f
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 @@ -582,6 +582,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 5f05c8f

Please sign in to comment.