Skip to content

Commit 1b52336

Browse files
authored
Merge pull request #4 from FunctionCalling/renovate/macpaw-openai-0.x
Update dependency MacPaw/OpenAI to from: "0.3.1"
2 parents 5d6f036 + ff1730a commit 1b52336

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

.github/workflows/swift.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

Sources/FunctionCalling-MacPaw-OpenAI/Extension/ChatQuery+Extension.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ import FunctionCalling
99
import OpenAI
1010

1111
extension ChatQuery.ChatCompletionToolParam {
12-
init(tool: Tool) {
12+
init(tool: FunctionCalling.Tool) {
1313
self.init(function: .init(tool: tool))
1414
}
1515
}
1616

1717
extension ChatQuery.ChatCompletionToolParam.FunctionDefinition {
18-
init(tool: Tool) {
18+
init(tool: FunctionCalling.Tool) {
1919
self.init(
2020
name: tool.name,
2121
description: tool.description,

0 commit comments

Comments
 (0)