Skip to content

Commit 39a3b23

Browse files
authored
Merge pull request #12 from FunctionCalling/fix/invalid-access-level
Fix invalid access level
2 parents 76a4f47 + 7363802 commit 39a3b23

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Package.resolved

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/FunctionCalling-AIProxySwift/FunctionCalling_AIProxySwift.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extension ToolContainer {
1111

1212
// swiftlint:disable:next line_length
1313
// https://github.com/lzell/AIProxySwift?tab=readme-ov-file#how-to-use-openai-structured-outputs-json-schemas-in-a-tool-call
14-
func toOpenAITools(strict: Bool = false) -> [AIProxyOpenAITool] {
14+
public func toOpenAITools(strict: Bool = false) -> [AIProxyOpenAITool] {
1515
guard let allTools else { return [] }
1616

1717
return allTools.map { tool in
@@ -25,7 +25,7 @@ extension ToolContainer {
2525
}
2626

2727
// https://github.com/lzell/AIProxySwift?tab=readme-ov-file#how-to-use-streaming-tool-calls-with-anthropic
28-
func toAnthropicTools() -> [AIProxyAnthropicTool] {
28+
public func toAnthropicTools() -> [AIProxyAnthropicTool] {
2929
guard let allTools else { return [] }
3030

3131
return allTools.map { tool in
@@ -39,7 +39,7 @@ extension ToolContainer {
3939

4040
// swiftlint:disable:next line_length
4141
// https://github.com/lzell/AIProxySwift?tab=readme-ov-file#how-to-make-a-tool-call-request-with-llama-and-togetherai
42-
func toTogetherAITools() -> [AIProxyTogetherAITool] {
42+
public func toTogetherAITools() -> [AIProxyTogetherAITool] {
4343
guard let allTools else { return [] }
4444

4545
return allTools.map { tool in

0 commit comments

Comments
 (0)