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(
17
17
] ,
18
18
dependencies: [
19
19
. 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 " )
21
21
] ,
22
22
targets: [
23
23
// 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
9
9
import OpenAI
10
10
11
11
extension ChatQuery . ChatCompletionToolParam {
12
- init ( tool: Tool ) {
12
+ init ( tool: FunctionCalling . Tool ) {
13
13
self . init ( function: . init( tool: tool) )
14
14
}
15
15
}
16
16
17
17
extension ChatQuery . ChatCompletionToolParam . FunctionDefinition {
18
- init ( tool: Tool ) {
18
+ init ( tool: FunctionCalling . Tool ) {
19
19
self . init (
20
20
name: tool. name,
21
21
description: tool. description,
You can’t perform that action at this time.
0 commit comments