File tree Expand file tree Collapse file tree 3 files changed +28
-3
lines changed
Sources/FunctionCalling-MacPaw-OpenAI/Extension Expand file tree Collapse file tree 3 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build a Swift project
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3+
4+ name : Swift
5+
6+ on :
7+ push :
8+ branches : " *"
9+ pull_request :
10+ branches : " *"
11+ jobs :
12+ build :
13+ runs-on : macos-15
14+ steps :
15+ - uses : actions/checkout@v4
16+ - name : Install swiftlint
17+ run : |
18+ brew update
19+ brew install swiftlint
20+ - name : Lint
21+ run : swiftlint
22+ - name : Build
23+ run : swift build -v
24+ - name : Run tests
25+ run : swift test -v
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ let package = Package(
1717 ] ,
1818 dependencies: [
1919 . package ( url: " https://github.com/FunctionCalling/FunctionCalling " , from: " 0.5.0 " ) ,
20- . package ( url: " https://github.com/MacPaw/OpenAI " , from: " 0.3.0 " )
20+ . package ( url: " https://github.com/MacPaw/OpenAI " , from: " 0.3.1 " )
2121 ] ,
2222 targets: [
2323 // Targets are the basic building blocks of a package, defining a module or a test suite.
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ import FunctionCalling
99import OpenAI
1010
1111extension ChatQuery . ChatCompletionToolParam {
12- init ( tool: Tool ) {
12+ init ( tool: FunctionCalling . Tool ) {
1313 self . init ( function: . init( tool: tool) )
1414 }
1515}
1616
1717extension ChatQuery . ChatCompletionToolParam . FunctionDefinition {
18- init ( tool: Tool ) {
18+ init ( tool: FunctionCalling . Tool ) {
1919 self . init (
2020 name: tool. name,
2121 description: tool. description,
You can’t perform that action at this time.
0 commit comments