File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Sources/FunctionCalling-AIProxySwift Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,14 @@ import FunctionCalling
55import AIProxy
66
77extension ToolContainer {
8+ public typealias AIProxyOpenAITool = OpenAIChatCompletionRequestBody . Tool
89 // swiftlint:disable:next line_length
910 // https://github.com/lzell/AIProxySwift?tab=readme-ov-file#how-to-use-openai-structured-outputs-json-schemas-in-a-tool-call
10- func toOpenAITools( strict: Bool = false ) -> [ OpenAIChatCompletionTool ] {
11+ func toOpenAITools( strict: Bool = false ) -> [ AIProxyOpenAITool ] {
1112 guard let allTools else { return [ ] }
1213
1314 return allTools. map { tool in
14- OpenAIChatCompletionTool . function (
15+ AIProxyOpenAITool . function (
1516 name: tool. name,
1617 description: tool. description,
1718 parameters: tool. inputSchema. toJSONSchema ( ) ,
You can’t perform that action at this time.
0 commit comments