This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of OpenAI with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Recouse/OpenAI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Recouse/OpenAI
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e928d98 Merge pull request #2 from Recouse/visionos-support
Cloned https://github.com/Recouse/OpenAI.git
Revision (git rev-parse @):
e928d988b4067050306316c337faec48467133d2
SUCCESS checkout https://github.com/Recouse/OpenAI.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Recouse/OpenAI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/11] Compiling EventSource SessionDelegate.swift
[5/11] Compiling EventSource ServerMessage.swift
[6/11] Compiling EventSource MessageParser.swift
[7/11] Compiling EventSource Extensions.swift
[8/11] Compiling EventSource EventSource.swift
[9/11] Compiling EventSource EventSourceError.swift
[10/11] Emitting module EventSource
[11/11] Compiling EventSource Headers.swift
[12/42] Compiling OpenAI OpenAIError.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/OpenAIError.swift:14:10: warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
12 |     case incompatibleModel
13 |     case undefinedError(httpStatusCode: Int)
14 |     case apiError(APIError)
   |          `- warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/APIError.swift:10:15: note: consider making struct 'APIError' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct APIError: Decodable {
   |               `- note: consider making struct 'APIError' conform to the 'Sendable' protocol
11 |     let message: String
12 |     let type: APIErrorType
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:40:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
38 |     }
39 |
40 |     public static let get: Self = "GET"
   |                       |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |     public static let post: Self = "POST"
42 | }
[13/42] Compiling OpenAI ModelType.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/OpenAIError.swift:14:10: warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
12 |     case incompatibleModel
13 |     case undefinedError(httpStatusCode: Int)
14 |     case apiError(APIError)
   |          `- warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/APIError.swift:10:15: note: consider making struct 'APIError' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct APIError: Decodable {
   |               `- note: consider making struct 'APIError' conform to the 'Sendable' protocol
11 |     let message: String
12 |     let type: APIErrorType
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:40:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
38 |     }
39 |
40 |     public static let get: Self = "GET"
   |                       |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |     public static let post: Self = "POST"
42 | }
[14/42] Compiling OpenAI ModelsRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/OpenAIError.swift:14:10: warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
12 |     case incompatibleModel
13 |     case undefinedError(httpStatusCode: Int)
14 |     case apiError(APIError)
   |          `- warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/APIError.swift:10:15: note: consider making struct 'APIError' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct APIError: Decodable {
   |               `- note: consider making struct 'APIError' conform to the 'Sendable' protocol
11 |     let message: String
12 |     let type: APIErrorType
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:40:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
38 |     }
39 |
40 |     public static let get: Self = "GET"
   |                       |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |     public static let post: Self = "POST"
42 | }
[15/45] Compiling OpenAI Edits.swift
[16/45] Compiling OpenAI EditsBody.swift
[17/45] Compiling OpenAI EditsModel.swift
[18/45] Emitting module OpenAI
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/OpenAIError.swift:14:10: warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
12 |     case incompatibleModel
13 |     case undefinedError(httpStatusCode: Int)
14 |     case apiError(APIError)
   |          `- warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/APIError.swift:10:15: note: consider making struct 'APIError' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct APIError: Decodable {
   |               `- note: consider making struct 'APIError' conform to the 'Sendable' protocol
11 |     let message: String
12 |     let type: APIErrorType
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:40:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
38 |     }
39 |
40 |     public static let get: Self = "GET"
   |                       |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |     public static let post: Self = "POST"
42 | }
[19/45] Compiling OpenAI APIError.swift
[20/45] Compiling OpenAI JSONDecoder.swift
[21/45] Compiling OpenAI JSONEncoder.swift
[22/45] Compiling OpenAI Usage.swift
[23/45] Compiling OpenAI CompletionResponse.swift
[24/45] Compiling OpenAI Completions.swift
[25/45] Compiling OpenAI CompletionsBody.swift
[26/45] Compiling OpenAI BaseRequestHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Handler/BaseRequestHandler.swift:48:32: warning: capture of 'self' with non-sendable type 'BaseRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 10 | import os.log
 11 |
 12 | public struct BaseRequestHandler: RequestHandler {
    |               `- note: consider making struct 'BaseRequestHandler' conform to the 'Sendable' protocol
 13 |     let urlSession: URLSession
 14 |     let eventSource: EventSource
    :
 46 |         return AsyncThrowingStream { continuation in
 47 |             Task {
 48 |                 let dataTask = eventSource.dataTask(for: urlRequest)
    |                                `- warning: capture of 'self' with non-sendable type 'BaseRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 49 |
 50 |                 for await event in dataTask.events() {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:40:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
38 |     }
39 |
40 |     public static let get: Self = "GET"
   |                       |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |     public static let post: Self = "POST"
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | }
43 |
[27/45] Compiling OpenAI RequestHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Handler/BaseRequestHandler.swift:48:32: warning: capture of 'self' with non-sendable type 'BaseRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 10 | import os.log
 11 |
 12 | public struct BaseRequestHandler: RequestHandler {
    |               `- note: consider making struct 'BaseRequestHandler' conform to the 'Sendable' protocol
 13 |     let urlSession: URLSession
 14 |     let eventSource: EventSource
    :
 46 |         return AsyncThrowingStream { continuation in
 47 |             Task {
 48 |                 let dataTask = eventSource.dataTask(for: urlRequest)
    |                                `- warning: capture of 'self' with non-sendable type 'BaseRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 49 |
 50 |                 for await event in dataTask.events() {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:40:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
38 |     }
39 |
40 |     public static let get: Self = "GET"
   |                       |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |     public static let post: Self = "POST"
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | }
43 |
[28/45] Compiling OpenAI Request.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Handler/BaseRequestHandler.swift:48:32: warning: capture of 'self' with non-sendable type 'BaseRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 10 | import os.log
 11 |
 12 | public struct BaseRequestHandler: RequestHandler {
    |               `- note: consider making struct 'BaseRequestHandler' conform to the 'Sendable' protocol
 13 |     let urlSession: URLSession
 14 |     let eventSource: EventSource
    :
 46 |         return AsyncThrowingStream { continuation in
 47 |             Task {
 48 |                 let dataTask = eventSource.dataTask(for: urlRequest)
    |                                `- warning: capture of 'self' with non-sendable type 'BaseRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 49 |
 50 |                 for await event in dataTask.events() {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:40:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
38 |     }
39 |
40 |     public static let get: Self = "GET"
   |                       |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |     public static let post: Self = "POST"
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | }
43 |
[29/45] Compiling OpenAI ChatCompletionsResponse.swift
[30/45] Compiling OpenAI ChatWrapper.swift
[31/45] Compiling OpenAI FinishReason.swift
[32/45] Compiling OpenAI ReponseFormat.swift
[33/45] Compiling OpenAI CompletionsRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | }
43 |
[34/45] Compiling OpenAI CompletionsWrapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | }
43 |
[35/45] Compiling OpenAI Configuration.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | }
43 |
[36/45] Compiling OpenAI EditsRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | }
43 |
[37/45] Compiling OpenAI EditsResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | }
43 |
[38/45] Compiling OpenAI EditsWrapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | }
43 |
[39/45] Compiling OpenAI ModelsResponse.swift
[40/45] Compiling OpenAI ModelsWrapper.swift
[41/45] Compiling OpenAI OpenAI.swift
[42/45] Compiling OpenAI ChatCompletions.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | }
43 |
[43/45] Compiling OpenAI ChatCompletionsBody.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | }
43 |
[44/45] Compiling OpenAI ChatCompletionsModels.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | }
43 |
[45/45] Compiling OpenAI ChatCompletionsRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | }
43 |
Build complete! (22.73s)
Fetching https://github.com/Recouse/EventSource.git
[1/296] Fetching eventsource
Fetched https://github.com/Recouse/EventSource.git from cache (0.85s)
Computing version for https://github.com/Recouse/EventSource.git
Computed https://github.com/Recouse/EventSource.git at 0.0.7 (0.55s)
Creating working copy for https://github.com/Recouse/EventSource.git
Working copy of https://github.com/Recouse/EventSource.git resolved at 0.0.7
Build complete.
{
  "dependencies" : [
    {
      "identity" : "eventsource",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.7",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Recouse/EventSource.git"
    }
  ],
  "manifest_display_name" : "OpenAI",
  "name" : "OpenAI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenAI",
      "targets" : [
        "OpenAI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenAITests",
      "module_type" : "SwiftTarget",
      "name" : "OpenAITests",
      "path" : "Tests/OpenAITests",
      "sources" : [
        "OpenAITests.swift"
      ],
      "target_dependencies" : [
        "OpenAI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenAI",
      "module_type" : "SwiftTarget",
      "name" : "OpenAI",
      "path" : "Sources/OpenAI",
      "product_dependencies" : [
        "EventSource"
      ],
      "product_memberships" : [
        "OpenAI"
      ],
      "sources" : [
        "Chat/ChatCompletions.swift",
        "Chat/ChatCompletionsBody.swift",
        "Chat/ChatCompletionsModels.swift",
        "Chat/ChatCompletionsRequest.swift",
        "Chat/ChatCompletionsResponse.swift",
        "Chat/ChatWrapper.swift",
        "Common/FinishReason.swift",
        "Common/ReponseFormat.swift",
        "Common/Usage.swift",
        "Completions/CompletionResponse.swift",
        "Completions/Completions.swift",
        "Completions/CompletionsBody.swift",
        "Completions/CompletionsRequest.swift",
        "Completions/CompletionsWrapper.swift",
        "Configuration.swift",
        "Edits/Edits.swift",
        "Edits/EditsBody.swift",
        "Edits/EditsModel.swift",
        "Edits/EditsRequest.swift",
        "Edits/EditsResponse.swift",
        "Edits/EditsWrapper.swift",
        "Extensions/APIError.swift",
        "Extensions/JSONDecoder.swift",
        "Extensions/JSONEncoder.swift",
        "Extensions/OpenAIError.swift",
        "ModelType.swift",
        "Models/ModelsRequest.swift",
        "Models/ModelsResponse.swift",
        "Models/ModelsWrapper.swift",
        "OpenAI.swift",
        "Request/Handler/BaseRequestHandler.swift",
        "Request/Handler/RequestHandler.swift",
        "Request/Request.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.