The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of OpenAIKit, reference master (0cbfa4), with Swift 6.2 (beta) for Android on 13 Jul 2025 11:50:29 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/guitaripod/OpenAIKit.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/guitaripod/OpenAIKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 0cbfa40 Update GitHub username from marcusziade to guitaripod
Cloned https://github.com/guitaripod/OpenAIKit.git
Revision (git rev-parse @):
0cbfa403b977867559b8fc566e352e681f1bd845
SUCCESS checkout https://github.com/guitaripod/OpenAIKit.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/guitaripod/OpenAIKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2094] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.41s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (3.29s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3425] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.92s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.60s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.5
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/9] Write sources
[4/9] Write swift-version-8C5A4AE7A8CE2BA.txt
[6/38] Emitting module OpenAIKit
[7/41] Compiling OpenAIKit ImagesEndpoint.swift
[8/41] Compiling OpenAIKit ModelsEndpoint.swift
[9/41] Compiling OpenAIKit ModerationsEndpoint.swift
[10/41] Compiling OpenAIKit ResponsesEndpoint.swift
[11/41] Compiling OpenAIKit ThreadsEndpoint.swift
[12/41] Compiling OpenAIKit VectorStoresEndpoint.swift
[13/41] Compiling OpenAIKit OpenAIError+UI.swift
[14/41] Compiling OpenAIKit Audio.swift
[15/41] Compiling OpenAIKit Images.swift
[16/41] Compiling OpenAIKit ModelConstants.swift
[17/41] Compiling OpenAIKit Models.swift
[18/41] Compiling OpenAIKit Moderations.swift
[19/41] Compiling OpenAIKit Responses.swift
[20/41] Compiling OpenAIKit OpenAIKit.swift
[21/41] Compiling OpenAIKit JSONValue.swift
[22/41] Compiling OpenAIKit Batch.swift
[23/41] Compiling OpenAIKit Chat.swift
[24/41] Compiling OpenAIKit Embeddings.swift
[25/41] Compiling OpenAIKit Files.swift
[26/41] Compiling OpenAIKit NetworkClient.swift
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:39:21: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 37 |             let task = session.dataTask(with: urlRequest) { data, response, error in
 38 |                 if let error = error {
 39 |                     continuation.resume(throwing: error)
    |                     `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 40 |                     return
 41 |                 }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:36:60: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 34 |         #if canImport(FoundationNetworking)
 35 |         // Linux implementation
 36 |         return try await withCheckedThrowingContinuation { continuation in
    |                                                            `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 37 |             let task = session.dataTask(with: urlRequest) { data, response, error in
 38 |                 if let error = error {
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:92:31: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 90 |
 91 |     public func stream<T: Decodable>(_ request: any Request) -> AsyncThrowingStream<T, Error> {
 92 |         AsyncThrowingStream { continuation in
    |                               `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 93 |             Task {
 94 |                 do {
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:192:21: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
190 |                     #endif
191 |                 } catch {
192 |                     continuation.finish(throwing: error)
    |                     `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
193 |                 }
194 |             }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:104:29: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
102 |                     let task = self.session.dataTask(with: urlRequest) { data, response, error in
103 |                         if let error = error {
104 |                             continuation.finish(throwing: error)
    |                             `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
105 |                             semaphore.signal()
106 |                             return
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:92:31: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 90 |
 91 |     public func stream<T: Decodable>(_ request: any Request) -> AsyncThrowingStream<T, Error> {
 92 |         AsyncThrowingStream { continuation in
    |                               `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 93 |             Task {
 94 |                 do {
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:120:29: warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
118 |
119 |                         if let data = data {
120 |                             receivedData.append(data)
    |                             `- warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
121 |
122 |                             // Process complete lines
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:123:58: warning: reference to captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
121 |
122 |                             // Process complete lines
123 |                             if let string = String(data: receivedData, encoding: .utf8) {
    |                                                          `- warning: reference to captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
124 |                                 let lines = string.components(separatedBy: "\n")
125 |
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:152:37: warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
150 |                                 // Keep the incomplete last line
151 |                                 if let lastLine = lines.last, !lastLine.isEmpty {
152 |                                     receivedData = lastLine.data(using: .utf8) ?? Data()
    |                                     `- warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
153 |                                 } else {
154 |                                     receivedData = Data()
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:154:37: warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
152 |                                     receivedData = lastLine.data(using: .utf8) ?? Data()
153 |                                 } else {
154 |                                     receivedData = Data()
    |                                     `- warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
155 |                                 }
156 |                             }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:206:21: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
204 |             let task = session.dataTask(with: urlRequest) { data, response, error in
205 |                 if let error = error {
206 |                     continuation.resume(throwing: error)
    |                     `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
207 |                     return
208 |                 }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:203:60: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
201 |         #if canImport(FoundationNetworking)
202 |         // Linux implementation
203 |         return try await withCheckedThrowingContinuation { continuation in
    |                                                            `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
204 |             let task = session.dataTask(with: urlRequest) { data, response, error in
205 |                 if let error = error {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[27/41] Compiling OpenAIKit OpenAIError.swift
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:39:21: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 37 |             let task = session.dataTask(with: urlRequest) { data, response, error in
 38 |                 if let error = error {
 39 |                     continuation.resume(throwing: error)
    |                     `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 40 |                     return
 41 |                 }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:36:60: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 34 |         #if canImport(FoundationNetworking)
 35 |         // Linux implementation
 36 |         return try await withCheckedThrowingContinuation { continuation in
    |                                                            `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 37 |             let task = session.dataTask(with: urlRequest) { data, response, error in
 38 |                 if let error = error {
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:92:31: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 90 |
 91 |     public func stream<T: Decodable>(_ request: any Request) -> AsyncThrowingStream<T, Error> {
 92 |         AsyncThrowingStream { continuation in
    |                               `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 93 |             Task {
 94 |                 do {
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:192:21: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
190 |                     #endif
191 |                 } catch {
192 |                     continuation.finish(throwing: error)
    |                     `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
193 |                 }
194 |             }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:104:29: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
102 |                     let task = self.session.dataTask(with: urlRequest) { data, response, error in
103 |                         if let error = error {
104 |                             continuation.finish(throwing: error)
    |                             `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
105 |                             semaphore.signal()
106 |                             return
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:92:31: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 90 |
 91 |     public func stream<T: Decodable>(_ request: any Request) -> AsyncThrowingStream<T, Error> {
 92 |         AsyncThrowingStream { continuation in
    |                               `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 93 |             Task {
 94 |                 do {
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:120:29: warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
118 |
119 |                         if let data = data {
120 |                             receivedData.append(data)
    |                             `- warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
121 |
122 |                             // Process complete lines
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:123:58: warning: reference to captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
121 |
122 |                             // Process complete lines
123 |                             if let string = String(data: receivedData, encoding: .utf8) {
    |                                                          `- warning: reference to captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
124 |                                 let lines = string.components(separatedBy: "\n")
125 |
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:152:37: warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
150 |                                 // Keep the incomplete last line
151 |                                 if let lastLine = lines.last, !lastLine.isEmpty {
152 |                                     receivedData = lastLine.data(using: .utf8) ?? Data()
    |                                     `- warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
153 |                                 } else {
154 |                                     receivedData = Data()
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:154:37: warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
152 |                                     receivedData = lastLine.data(using: .utf8) ?? Data()
153 |                                 } else {
154 |                                     receivedData = Data()
    |                                     `- warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
155 |                                 }
156 |                             }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:206:21: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
204 |             let task = session.dataTask(with: urlRequest) { data, response, error in
205 |                 if let error = error {
206 |                     continuation.resume(throwing: error)
    |                     `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
207 |                     return
208 |                 }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:203:60: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
201 |         #if canImport(FoundationNetworking)
202 |         // Linux implementation
203 |         return try await withCheckedThrowingContinuation { continuation in
    |                                                            `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
204 |             let task = session.dataTask(with: urlRequest) { data, response, error in
205 |                 if let error = error {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[28/41] Compiling OpenAIKit Request.swift
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:39:21: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 37 |             let task = session.dataTask(with: urlRequest) { data, response, error in
 38 |                 if let error = error {
 39 |                     continuation.resume(throwing: error)
    |                     `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 40 |                     return
 41 |                 }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:36:60: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 34 |         #if canImport(FoundationNetworking)
 35 |         // Linux implementation
 36 |         return try await withCheckedThrowingContinuation { continuation in
    |                                                            `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 37 |             let task = session.dataTask(with: urlRequest) { data, response, error in
 38 |                 if let error = error {
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:92:31: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 90 |
 91 |     public func stream<T: Decodable>(_ request: any Request) -> AsyncThrowingStream<T, Error> {
 92 |         AsyncThrowingStream { continuation in
    |                               `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 93 |             Task {
 94 |                 do {
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:192:21: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
190 |                     #endif
191 |                 } catch {
192 |                     continuation.finish(throwing: error)
    |                     `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
193 |                 }
194 |             }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:104:29: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
102 |                     let task = self.session.dataTask(with: urlRequest) { data, response, error in
103 |                         if let error = error {
104 |                             continuation.finish(throwing: error)
    |                             `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
105 |                             semaphore.signal()
106 |                             return
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:92:31: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 90 |
 91 |     public func stream<T: Decodable>(_ request: any Request) -> AsyncThrowingStream<T, Error> {
 92 |         AsyncThrowingStream { continuation in
    |                               `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 93 |             Task {
 94 |                 do {
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:120:29: warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
118 |
119 |                         if let data = data {
120 |                             receivedData.append(data)
    |                             `- warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
121 |
122 |                             // Process complete lines
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:123:58: warning: reference to captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
121 |
122 |                             // Process complete lines
123 |                             if let string = String(data: receivedData, encoding: .utf8) {
    |                                                          `- warning: reference to captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
124 |                                 let lines = string.components(separatedBy: "\n")
125 |
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:152:37: warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
150 |                                 // Keep the incomplete last line
151 |                                 if let lastLine = lines.last, !lastLine.isEmpty {
152 |                                     receivedData = lastLine.data(using: .utf8) ?? Data()
    |                                     `- warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
153 |                                 } else {
154 |                                     receivedData = Data()
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:154:37: warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
152 |                                     receivedData = lastLine.data(using: .utf8) ?? Data()
153 |                                 } else {
154 |                                     receivedData = Data()
    |                                     `- warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
155 |                                 }
156 |                             }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:206:21: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
204 |             let task = session.dataTask(with: urlRequest) { data, response, error in
205 |                 if let error = error {
206 |                     continuation.resume(throwing: error)
    |                     `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
207 |                     return
208 |                 }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:203:60: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
201 |         #if canImport(FoundationNetworking)
202 |         // Linux implementation
203 |         return try await withCheckedThrowingContinuation { continuation in
    |                                                            `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
204 |             let task = session.dataTask(with: urlRequest) { data, response, error in
205 |                 if let error = error {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[29/41] Compiling OpenAIKit RetryHandler.swift
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:39:21: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 37 |             let task = session.dataTask(with: urlRequest) { data, response, error in
 38 |                 if let error = error {
 39 |                     continuation.resume(throwing: error)
    |                     `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 40 |                     return
 41 |                 }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:36:60: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 34 |         #if canImport(FoundationNetworking)
 35 |         // Linux implementation
 36 |         return try await withCheckedThrowingContinuation { continuation in
    |                                                            `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 37 |             let task = session.dataTask(with: urlRequest) { data, response, error in
 38 |                 if let error = error {
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:92:31: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 90 |
 91 |     public func stream<T: Decodable>(_ request: any Request) -> AsyncThrowingStream<T, Error> {
 92 |         AsyncThrowingStream { continuation in
    |                               `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 93 |             Task {
 94 |                 do {
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:192:21: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
190 |                     #endif
191 |                 } catch {
192 |                     continuation.finish(throwing: error)
    |                     `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
193 |                 }
194 |             }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:104:29: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
102 |                     let task = self.session.dataTask(with: urlRequest) { data, response, error in
103 |                         if let error = error {
104 |                             continuation.finish(throwing: error)
    |                             `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
105 |                             semaphore.signal()
106 |                             return
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:92:31: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 90 |
 91 |     public func stream<T: Decodable>(_ request: any Request) -> AsyncThrowingStream<T, Error> {
 92 |         AsyncThrowingStream { continuation in
    |                               `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 93 |             Task {
 94 |                 do {
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:120:29: warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
118 |
119 |                         if let data = data {
120 |                             receivedData.append(data)
    |                             `- warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
121 |
122 |                             // Process complete lines
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:123:58: warning: reference to captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
121 |
122 |                             // Process complete lines
123 |                             if let string = String(data: receivedData, encoding: .utf8) {
    |                                                          `- warning: reference to captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
124 |                                 let lines = string.components(separatedBy: "\n")
125 |
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:152:37: warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
150 |                                 // Keep the incomplete last line
151 |                                 if let lastLine = lines.last, !lastLine.isEmpty {
152 |                                     receivedData = lastLine.data(using: .utf8) ?? Data()
    |                                     `- warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
153 |                                 } else {
154 |                                     receivedData = Data()
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:154:37: warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
152 |                                     receivedData = lastLine.data(using: .utf8) ?? Data()
153 |                                 } else {
154 |                                     receivedData = Data()
    |                                     `- warning: mutation of captured var 'receivedData' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
155 |                                 }
156 |                             }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:206:21: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
204 |             let task = session.dataTask(with: urlRequest) { data, response, error in
205 |                 if let error = error {
206 |                     continuation.resume(throwing: error)
    |                     `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
207 |                     return
208 |                 }
/host/spi-builder-workspace/Sources/OpenAIKit/Core/NetworkClient.swift:203:60: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
201 |         #if canImport(FoundationNetworking)
202 |         // Linux implementation
203 |         return try await withCheckedThrowingContinuation { continuation in
    |                                                            `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
204 |             let task = session.dataTask(with: urlRequest) { data, response, error in
205 |                 if let error = error {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[30/41] Compiling OpenAIKit AssistantsEndpoint.swift
[31/41] Compiling OpenAIKit AudioEndpoint.swift
[32/41] Compiling OpenAIKit BatchEndpoint.swift
[33/41] Compiling OpenAIKit BatchesEndpoint.swift
[34/41] Compiling OpenAIKit ChatEndpoint.swift
[35/41] Compiling OpenAIKit EmbeddingsEndpoint.swift
[36/41] Compiling OpenAIKit FilesEndpoint.swift
[37/41] Compiling OpenAIKit FineTuningEndpoint.swift
[38/42] Wrapping AST for OpenAIKit for debugging
[40/57] Compiling OpenAIKitTester ImageTests.swift
[41/57] Compiling OpenAIKitTester ModelTests.swift
[42/59] Compiling OpenAIKitTester EdgeCaseTests.swift
[43/59] Compiling OpenAIKitTester EmbeddingTests.swift
[44/59] Compiling OpenAIKitTester FileTests.swift
[45/59] Compiling OpenAIKitTester GptImage1Test.swift
[46/59] Compiling OpenAIKitTester ModerationTests.swift
[47/59] Compiling OpenAIKitTester TestProtocol.swift
[48/59] Compiling OpenAIKitTester AudioTests.swift
[49/59] Compiling OpenAIKitTester BatchTests.swift
[50/59] Compiling OpenAIKitTester ChatTests.swift
[51/59] Compiling OpenAIKitTester DeepResearchTests.swift
[52/59] Emitting module OpenAIKitTester
[53/59] Compiling OpenAIKitTester TestConfiguration.swift
[54/59] Compiling OpenAIKitTester OpenAIKitTester.swift
[55/59] Compiling OpenAIKitTester TestRunner.swift
[56/59] Compiling OpenAIKitTester AdvancedTests.swift
[57/60] Wrapping AST for OpenAIKitTester for debugging
[58/60] Write Objects.LinkFileList
[59/60] Linking OpenAIKitTester
Build complete! (50.91s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "OpenAIKit",
  "name" : "OpenAIKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenAIKit",
      "targets" : [
        "OpenAIKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "OpenAIKitTester",
      "targets" : [
        "OpenAIKitTester"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenAIKitTests",
      "module_type" : "SwiftTarget",
      "name" : "OpenAIKitTests",
      "path" : "Tests/OpenAIKitTests",
      "sources" : [
        "AudioModelsTests.swift",
        "ChatModelsTests.swift",
        "ConfigurationTests.swift",
        "EmbeddingModelsTests.swift",
        "EnhancedErrorHandlingTests.swift",
        "ErrorHandlingTests.swift",
        "JSONValueTests.swift",
        "ModelConstantsTests.swift",
        "OpenAIKitTests.swift",
        "RequestSerializationTests.swift",
        "ResponseParsingTests.swift"
      ],
      "target_dependencies" : [
        "OpenAIKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenAIKitTester",
      "module_type" : "SwiftTarget",
      "name" : "OpenAIKitTester",
      "path" : "Sources/OpenAIKitTester",
      "product_memberships" : [
        "OpenAIKitTester"
      ],
      "sources" : [
        "Configuration/TestConfiguration.swift",
        "OpenAIKitTester.swift",
        "TestRunner.swift",
        "Tests/AdvancedTests.swift",
        "Tests/AudioTests.swift",
        "Tests/BatchTests.swift",
        "Tests/ChatTests.swift",
        "Tests/DeepResearchTests.swift",
        "Tests/EdgeCaseTests.swift",
        "Tests/EmbeddingTests.swift",
        "Tests/FileTests.swift",
        "Tests/GptImage1Test.swift",
        "Tests/ImageTests.swift",
        "Tests/ModelTests.swift",
        "Tests/ModerationTests.swift",
        "Utilities/TestProtocol.swift"
      ],
      "target_dependencies" : [
        "OpenAIKit"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "OpenAIKit",
      "module_type" : "SwiftTarget",
      "name" : "OpenAIKit",
      "path" : "Sources/OpenAIKit",
      "product_memberships" : [
        "OpenAIKit",
        "OpenAIKitTester"
      ],
      "sources" : [
        "Core/NetworkClient.swift",
        "Core/OpenAIError.swift",
        "Core/Request.swift",
        "Core/RetryHandler.swift",
        "Endpoints/AssistantsEndpoint.swift",
        "Endpoints/AudioEndpoint.swift",
        "Endpoints/BatchEndpoint.swift",
        "Endpoints/BatchesEndpoint.swift",
        "Endpoints/ChatEndpoint.swift",
        "Endpoints/EmbeddingsEndpoint.swift",
        "Endpoints/FilesEndpoint.swift",
        "Endpoints/FineTuningEndpoint.swift",
        "Endpoints/ImagesEndpoint.swift",
        "Endpoints/ModelsEndpoint.swift",
        "Endpoints/ModerationsEndpoint.swift",
        "Endpoints/ResponsesEndpoint.swift",
        "Endpoints/ThreadsEndpoint.swift",
        "Endpoints/VectorStoresEndpoint.swift",
        "Extensions/OpenAIError+UI.swift",
        "Models/Audio.swift",
        "Models/Batch.swift",
        "Models/Chat.swift",
        "Models/Embeddings.swift",
        "Models/Files.swift",
        "Models/Images.swift",
        "Models/ModelConstants.swift",
        "Models/Models.swift",
        "Models/Moderations.swift",
        "Models/Responses.swift",
        "OpenAIKit.swift",
        "Utilities/JSONValue.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Done.