Build Information
Successful build of SwiftOpenAI with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 4
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/SwiftBeta/SwiftOpenAI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SwiftBeta/SwiftOpenAI
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b316788 Edits and variations images (#45)
Cloned https://github.com/SwiftBeta/SwiftOpenAI.git
Revision (git rev-parse @):
b316788cf0e6584cc730d8231112dd2c76458713
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/SwiftBeta/SwiftOpenAI.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/SwiftBeta/SwiftOpenAI.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
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/59] Emitting module SwiftOpenAI
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/DataModels/Chat/ChatCompletionsStreamDataModel.swift:10:16: warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public var choices: [ChoicesStreamDataModel]
9 |
10 | static var finished: ChatCompletionsStreamDataModel = {
| |- warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'finished' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'finished' 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
11 | .init(id: UUID().uuidString,
12 | object: "",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:24:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranscriptionRequest' is mutable; this is an error in the Swift 6 language mode
22 | _ temperature: Double) async throws -> AsyncThrowingStream<CreateTranscriptionDataModel, Error>
23 |
24 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranscriptionRequest' is mutable; this is an error in the Swift 6 language mode
25 | private var dataTask: URLSessionDataTask?
26 | private var continuation: AsyncThrowingStream<CreateTranscriptionDataModel, Error>.Continuation?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:22:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranslationRequest' is mutable; this is an error in the Swift 6 language mode
20 | _ temperature: Double) async throws -> AsyncThrowingStream<CreateTranslationDataModel, Error>
21 |
22 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranslationRequest' is mutable; this is an error in the Swift 6 language mode
23 | private var dataTask: URLSessionDataTask?
24 | private var continuation: AsyncThrowingStream<CreateTranslationDataModel, Error>.Continuation?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:21:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateChatCompletionsStreamRequest' is mutable; this is an error in the Swift 6 language mode
19 | _ optionalParameters: ChatCompletionsOptionalParameters?) throws -> AsyncThrowingStream<ChatCompletionsStreamDataModel, Error>
20 |
21 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateChatCompletionsStreamRequest' is mutable; this is an error in the Swift 6 language mode
22 | private var dataTask: URLSessionDataTask?
23 | private var streamMapper: ChatCompletionsStreamMappeable
[6/64] Compiling SwiftOpenAI OpenAITranscriptionModelType.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/DataModels/Chat/ChatCompletionsStreamDataModel.swift:10:16: warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public var choices: [ChoicesStreamDataModel]
9 |
10 | static var finished: ChatCompletionsStreamDataModel = {
| |- warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'finished' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'finished' 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
11 | .init(id: UUID().uuidString,
12 | object: "",
[7/64] Compiling SwiftOpenAI OpenAIVoiceType.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/DataModels/Chat/ChatCompletionsStreamDataModel.swift:10:16: warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public var choices: [ChoicesStreamDataModel]
9 |
10 | static var finished: ChatCompletionsStreamDataModel = {
| |- warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'finished' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'finished' 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
11 | .init(id: UUID().uuidString,
12 | object: "",
[8/64] Compiling SwiftOpenAI ChatCompletionsDataModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/DataModels/Chat/ChatCompletionsStreamDataModel.swift:10:16: warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public var choices: [ChoicesStreamDataModel]
9 |
10 | static var finished: ChatCompletionsStreamDataModel = {
| |- warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'finished' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'finished' 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
11 | .init(id: UUID().uuidString,
12 | object: "",
[9/64] Compiling SwiftOpenAI ChatCompletionsOptionalParameters.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/DataModels/Chat/ChatCompletionsStreamDataModel.swift:10:16: warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public var choices: [ChoicesStreamDataModel]
9 |
10 | static var finished: ChatCompletionsStreamDataModel = {
| |- warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'finished' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'finished' 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
11 | .init(id: UUID().uuidString,
12 | object: "",
[10/64] Compiling SwiftOpenAI ChatCompletionsStreamDataModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/DataModels/Chat/ChatCompletionsStreamDataModel.swift:10:16: warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public var choices: [ChoicesStreamDataModel]
9 |
10 | static var finished: ChatCompletionsStreamDataModel = {
| |- warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'finished' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'finished' 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
11 | .init(id: UUID().uuidString,
12 | object: "",
[11/64] Compiling SwiftOpenAI CompletionsDataModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/DataModels/Chat/ChatCompletionsStreamDataModel.swift:10:16: warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public var choices: [ChoicesStreamDataModel]
9 |
10 | static var finished: ChatCompletionsStreamDataModel = {
| |- warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'finished' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'finished' 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
11 | .init(id: UUID().uuidString,
12 | object: "",
[12/64] Compiling SwiftOpenAI BaseEnvironment.swift
[13/64] Compiling SwiftOpenAI Router.swift
[14/64] Compiling SwiftOpenAI CreateTranscriptionDataModel.swift
[15/64] Compiling SwiftOpenAI CreateTranslationDataModel.swift
[16/64] Compiling SwiftOpenAI OpenAIAudioResponseType.swift
[17/64] Compiling SwiftOpenAI OpenAITTSModelType.swift
[18/64] Compiling SwiftOpenAI OpenAIEndpoints.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:24:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranscriptionRequest' is mutable; this is an error in the Swift 6 language mode
22 | _ temperature: Double) async throws -> AsyncThrowingStream<CreateTranscriptionDataModel, Error>
23 |
24 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranscriptionRequest' is mutable; this is an error in the Swift 6 language mode
25 | private var dataTask: URLSessionDataTask?
26 | private var continuation: AsyncThrowingStream<CreateTranscriptionDataModel, Error>.Continuation?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:22:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranslationRequest' is mutable; this is an error in the Swift 6 language mode
20 | _ temperature: Double) async throws -> AsyncThrowingStream<CreateTranslationDataModel, Error>
21 |
22 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranslationRequest' is mutable; this is an error in the Swift 6 language mode
23 | private var dataTask: URLSessionDataTask?
24 | private var continuation: AsyncThrowingStream<CreateTranslationDataModel, Error>.Continuation?
[19/64] Compiling SwiftOpenAI CreateSpeechRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:24:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranscriptionRequest' is mutable; this is an error in the Swift 6 language mode
22 | _ temperature: Double) async throws -> AsyncThrowingStream<CreateTranscriptionDataModel, Error>
23 |
24 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranscriptionRequest' is mutable; this is an error in the Swift 6 language mode
25 | private var dataTask: URLSessionDataTask?
26 | private var continuation: AsyncThrowingStream<CreateTranscriptionDataModel, Error>.Continuation?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:22:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranslationRequest' is mutable; this is an error in the Swift 6 language mode
20 | _ temperature: Double) async throws -> AsyncThrowingStream<CreateTranslationDataModel, Error>
21 |
22 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranslationRequest' is mutable; this is an error in the Swift 6 language mode
23 | private var dataTask: URLSessionDataTask?
24 | private var continuation: AsyncThrowingStream<CreateTranslationDataModel, Error>.Continuation?
[20/64] Compiling SwiftOpenAI CreateTranscriptionRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:24:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranscriptionRequest' is mutable; this is an error in the Swift 6 language mode
22 | _ temperature: Double) async throws -> AsyncThrowingStream<CreateTranscriptionDataModel, Error>
23 |
24 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranscriptionRequest' is mutable; this is an error in the Swift 6 language mode
25 | private var dataTask: URLSessionDataTask?
26 | private var continuation: AsyncThrowingStream<CreateTranscriptionDataModel, Error>.Continuation?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:22:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranslationRequest' is mutable; this is an error in the Swift 6 language mode
20 | _ temperature: Double) async throws -> AsyncThrowingStream<CreateTranslationDataModel, Error>
21 |
22 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranslationRequest' is mutable; this is an error in the Swift 6 language mode
23 | private var dataTask: URLSessionDataTask?
24 | private var continuation: AsyncThrowingStream<CreateTranslationDataModel, Error>.Continuation?
[21/64] Compiling SwiftOpenAI CreateTranslationRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:24:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranscriptionRequest' is mutable; this is an error in the Swift 6 language mode
22 | _ temperature: Double) async throws -> AsyncThrowingStream<CreateTranscriptionDataModel, Error>
23 |
24 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranscriptionRequest' is mutable; this is an error in the Swift 6 language mode
25 | private var dataTask: URLSessionDataTask?
26 | private var continuation: AsyncThrowingStream<CreateTranscriptionDataModel, Error>.Continuation?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:22:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranslationRequest' is mutable; this is an error in the Swift 6 language mode
20 | _ temperature: Double) async throws -> AsyncThrowingStream<CreateTranslationDataModel, Error>
21 |
22 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranslationRequest' is mutable; this is an error in the Swift 6 language mode
23 | private var dataTask: URLSessionDataTask?
24 | private var continuation: AsyncThrowingStream<CreateTranslationDataModel, Error>.Continuation?
[22/64] Compiling SwiftOpenAI CreateChatCompletionsImageInputRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:24:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranscriptionRequest' is mutable; this is an error in the Swift 6 language mode
22 | _ temperature: Double) async throws -> AsyncThrowingStream<CreateTranscriptionDataModel, Error>
23 |
24 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranscriptionRequest' is mutable; this is an error in the Swift 6 language mode
25 | private var dataTask: URLSessionDataTask?
26 | private var continuation: AsyncThrowingStream<CreateTranscriptionDataModel, Error>.Continuation?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:22:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranslationRequest' is mutable; this is an error in the Swift 6 language mode
20 | _ temperature: Double) async throws -> AsyncThrowingStream<CreateTranslationDataModel, Error>
21 |
22 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranslationRequest' is mutable; this is an error in the Swift 6 language mode
23 | private var dataTask: URLSessionDataTask?
24 | private var continuation: AsyncThrowingStream<CreateTranslationDataModel, Error>.Continuation?
[23/64] Compiling SwiftOpenAI CreateChatCompletionsRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:24:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranscriptionRequest' is mutable; this is an error in the Swift 6 language mode
22 | _ temperature: Double) async throws -> AsyncThrowingStream<CreateTranscriptionDataModel, Error>
23 |
24 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranscriptionRequest' is mutable; this is an error in the Swift 6 language mode
25 | private var dataTask: URLSessionDataTask?
26 | private var continuation: AsyncThrowingStream<CreateTranscriptionDataModel, Error>.Continuation?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:22:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranslationRequest' is mutable; this is an error in the Swift 6 language mode
20 | _ temperature: Double) async throws -> AsyncThrowingStream<CreateTranslationDataModel, Error>
21 |
22 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateTranslationRequest' is mutable; this is an error in the Swift 6 language mode
23 | private var dataTask: URLSessionDataTask?
24 | private var continuation: AsyncThrowingStream<CreateTranslationDataModel, Error>.Continuation?
[24/64] Compiling SwiftOpenAI CompletionsOptionalParameters.swift
[25/64] Compiling SwiftOpenAI EmbeddingDataModel.swift
[26/64] Compiling SwiftOpenAI CreateImageDataModel.swift
[27/64] Compiling SwiftOpenAI ImageSize.swift
[28/64] Compiling SwiftOpenAI MessageChatGPT.swift
[29/64] Compiling SwiftOpenAI MessageChatImageInput.swift
[30/64] Compiling SwiftOpenAI VariationImageRequest.swift
[31/64] Compiling SwiftOpenAI ListModelsRequest.swift
[32/64] Compiling SwiftOpenAI ModerationsRequest.swift
[33/64] Compiling SwiftOpenAI MultipartFormData.swift
[34/64] Compiling SwiftOpenAI SwiftOpenAI.swift
[35/64] Compiling SwiftOpenAI MessageRoleType.swift
[36/64] Compiling SwiftOpenAI ModelDataModel.swift
[37/64] Compiling SwiftOpenAI ModerationsDataModel.swift
[38/64] Compiling SwiftOpenAI OpenAIError.swift
[39/64] Compiling SwiftOpenAI OpenAIModelType.swift
[40/64] Compiling SwiftOpenAI OpenAIBaseEnvironment.swift
[41/64] Compiling SwiftOpenAI CreateSpeechEndpoint.swift
[42/64] Compiling SwiftOpenAI CreateTranscriptionEndpoint.swift
[43/64] Compiling SwiftOpenAI CreateTranslationEndpoint.swift
[44/64] Compiling SwiftOpenAI ChatCompletionsEndpoint.swift
[45/64] Compiling SwiftOpenAI ChatCompletionsImageInputEndpoint.swift
[46/64] Compiling SwiftOpenAI CompletionsEndpoint.swift
[47/64] Compiling SwiftOpenAI API.swift
[48/64] Compiling SwiftOpenAI Endpoint.swift
[49/64] Compiling SwiftOpenAI Parser.swift
[50/64] Compiling SwiftOpenAI APIError.swift
[51/64] Compiling SwiftOpenAI RequestBuilder.swift
[52/64] Compiling SwiftOpenAI Requester.swift
[53/64] Compiling SwiftOpenAI ChatCompletionsStreamMapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/DataModels/Chat/ChatCompletionsStreamDataModel.swift:10:16: warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public var choices: [ChoicesStreamDataModel]
9 |
10 | static var finished: ChatCompletionsStreamDataModel = {
| |- warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'finished' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'finished' 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
11 | .init(id: UUID().uuidString,
12 | object: "",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:21:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateChatCompletionsStreamRequest' is mutable; this is an error in the Swift 6 language mode
19 | _ optionalParameters: ChatCompletionsOptionalParameters?) throws -> AsyncThrowingStream<ChatCompletionsStreamDataModel, Error>
20 |
21 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateChatCompletionsStreamRequest' is mutable; this is an error in the Swift 6 language mode
22 | private var dataTask: URLSessionDataTask?
23 | private var streamMapper: ChatCompletionsStreamMappeable
[54/64] Compiling SwiftOpenAI CreateChatCompletionsStreamRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/DataModels/Chat/ChatCompletionsStreamDataModel.swift:10:16: warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public var choices: [ChoicesStreamDataModel]
9 |
10 | static var finished: ChatCompletionsStreamDataModel = {
| |- warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'finished' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'finished' 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
11 | .init(id: UUID().uuidString,
12 | object: "",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:21:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateChatCompletionsStreamRequest' is mutable; this is an error in the Swift 6 language mode
19 | _ optionalParameters: ChatCompletionsOptionalParameters?) throws -> AsyncThrowingStream<ChatCompletionsStreamDataModel, Error>
20 |
21 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateChatCompletionsStreamRequest' is mutable; this is an error in the Swift 6 language mode
22 | private var dataTask: URLSessionDataTask?
23 | private var streamMapper: ChatCompletionsStreamMappeable
[55/64] Compiling SwiftOpenAI CompletionsRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/DataModels/Chat/ChatCompletionsStreamDataModel.swift:10:16: warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public var choices: [ChoicesStreamDataModel]
9 |
10 | static var finished: ChatCompletionsStreamDataModel = {
| |- warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'finished' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'finished' 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
11 | .init(id: UUID().uuidString,
12 | object: "",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:21:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateChatCompletionsStreamRequest' is mutable; this is an error in the Swift 6 language mode
19 | _ optionalParameters: ChatCompletionsOptionalParameters?) throws -> AsyncThrowingStream<ChatCompletionsStreamDataModel, Error>
20 |
21 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateChatCompletionsStreamRequest' is mutable; this is an error in the Swift 6 language mode
22 | private var dataTask: URLSessionDataTask?
23 | private var streamMapper: ChatCompletionsStreamMappeable
[56/64] Compiling SwiftOpenAI EmbeddingsRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/DataModels/Chat/ChatCompletionsStreamDataModel.swift:10:16: warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public var choices: [ChoicesStreamDataModel]
9 |
10 | static var finished: ChatCompletionsStreamDataModel = {
| |- warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'finished' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'finished' 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
11 | .init(id: UUID().uuidString,
12 | object: "",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:21:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateChatCompletionsStreamRequest' is mutable; this is an error in the Swift 6 language mode
19 | _ optionalParameters: ChatCompletionsOptionalParameters?) throws -> AsyncThrowingStream<ChatCompletionsStreamDataModel, Error>
20 |
21 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateChatCompletionsStreamRequest' is mutable; this is an error in the Swift 6 language mode
22 | private var dataTask: URLSessionDataTask?
23 | private var streamMapper: ChatCompletionsStreamMappeable
[57/64] Compiling SwiftOpenAI CreateImagesRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/DataModels/Chat/ChatCompletionsStreamDataModel.swift:10:16: warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public var choices: [ChoicesStreamDataModel]
9 |
10 | static var finished: ChatCompletionsStreamDataModel = {
| |- warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'finished' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'finished' 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
11 | .init(id: UUID().uuidString,
12 | object: "",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:21:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateChatCompletionsStreamRequest' is mutable; this is an error in the Swift 6 language mode
19 | _ optionalParameters: ChatCompletionsOptionalParameters?) throws -> AsyncThrowingStream<ChatCompletionsStreamDataModel, Error>
20 |
21 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateChatCompletionsStreamRequest' is mutable; this is an error in the Swift 6 language mode
22 | private var dataTask: URLSessionDataTask?
23 | private var streamMapper: ChatCompletionsStreamMappeable
[58/64] Compiling SwiftOpenAI EditImageRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/DataModels/Chat/ChatCompletionsStreamDataModel.swift:10:16: warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public var choices: [ChoicesStreamDataModel]
9 |
10 | static var finished: ChatCompletionsStreamDataModel = {
| |- warning: static property 'finished' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'finished' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'finished' 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
11 | .init(id: UUID().uuidString,
12 | object: "",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:21:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateChatCompletionsStreamRequest' is mutable; this is an error in the Swift 6 language mode
19 | _ optionalParameters: ChatCompletionsOptionalParameters?) throws -> AsyncThrowingStream<ChatCompletionsStreamDataModel, Error>
20 |
21 | private var urlSession: URLSession?
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'CreateChatCompletionsStreamRequest' is mutable; this is an error in the Swift 6 language mode
22 | private var dataTask: URLSessionDataTask?
23 | private var streamMapper: ChatCompletionsStreamMappeable
[59/64] Compiling SwiftOpenAI EmbeddingsEndpoint.swift
[60/64] Compiling SwiftOpenAI CreateImageEndpoint.swift
[61/64] Compiling SwiftOpenAI EditImageEndpoint.swift
[62/64] Compiling SwiftOpenAI VariationImageEndpoint.swift
[63/64] Compiling SwiftOpenAI ListModelsEndpoint.swift
[64/64] Compiling SwiftOpenAI ModerationEndpoint.swift
Build complete! (43.84s)
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-docc-symbolkit
[1/1465] Fetching swift-docc-plugin
[558/4326] Fetching swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (3.21s)
Fetched https://github.com/apple/swift-docc-plugin from cache (3.21s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.2.0 (0.69s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.76s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
Build complete.
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "SwiftOpenAI",
"name" : "SwiftOpenAI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "SwiftOpenAI",
"targets" : [
"SwiftOpenAI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftOpenAITests",
"module_type" : "SwiftTarget",
"name" : "SwiftOpenAITests",
"path" : "Tests/SwiftOpenAITests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftOpenAITests/OpenAITests/Unit Tests/JSON/completions.error.invalid_api_key.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftOpenAITests/OpenAITests/Unit Tests/JSON/chat.completions.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftOpenAITests/OpenAITests/Unit Tests/JSON/embeddings.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftOpenAITests/OpenAITests/Unit Tests/JSON/chat.completions.error.invalid_api_key.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftOpenAITests/OpenAITests/Unit Tests/JSON/create.image.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftOpenAITests/OpenAITests/Unit Tests/JSON/models.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftOpenAITests/OpenAITests/Unit Tests/JSON/moderations.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftOpenAITests/OpenAITests/Unit Tests/JSON/completions.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"APIClientTests/Endpoint/EndpointSpec.swift",
"APIClientTests/Endpoint/Mocks/EmptyEndpointMock.swift",
"APIClientTests/Endpoint/Mocks/EndpointGetMock.swift",
"APIClientTests/Endpoint/Mocks/EndpointPostMock.swift",
"APIClientTests/Parser/ParserSpec.swift",
"APIClientTests/Parser/SwiftBetaModel.swift",
"APIClientTests/Requester/Mocks/RequesterMock.swift",
"APIClientTests/Requester/Mocks/URLProtocolMock.swift",
"APIClientTests/Requester/RequesterBuilderSpec.swift",
"APIClientTests/Requester/RequesterSpec.swift",
"APIClientTests/Router/BaseEnvironmentMock.swift",
"APIClientTests/Router/RouterSpec.swift",
"OpenAITests/Helpers/URLStreamProtocolMock.swift",
"OpenAITests/Helpers/dataToJSON.swift",
"OpenAITests/Helpers/loadJSON.swift",
"OpenAITests/Unit Tests/Audio/CreateSpeech/CreateSpeechEndpointSpec.swift",
"OpenAITests/Unit Tests/Audio/CreateSpeech/CreateSpeechRequestSpec.swift",
"OpenAITests/Unit Tests/Audio/CreateTranscription/CreateTranscriptionEndpointSpec.swift",
"OpenAITests/Unit Tests/Audio/CreateTranscription/CreateTranscriptionRequestSpec.swift",
"OpenAITests/Unit Tests/ChatCompletions/ChatCompletionsAPIClientSpec.swift",
"OpenAITests/Unit Tests/ChatCompletions/ChatCompletionsEndpointSpec.swift",
"OpenAITests/Unit Tests/ChatCompletions/ChatCompletionsParserSpec.swift",
"OpenAITests/Unit Tests/ChatCompletions/ChatCompletionsRequestSpec.swift",
"OpenAITests/Unit Tests/ChatCompletions/ChatCompletionsStreamAPIClientSpec.swift",
"OpenAITests/Unit Tests/ChatCompletions/ChatCompletionsStreamMapperSpec.swift",
"OpenAITests/Unit Tests/Completions/CompletionParserSpec.swift",
"OpenAITests/Unit Tests/Completions/CompletionRequestSpec.swift",
"OpenAITests/Unit Tests/Completions/CompletionsAPIClientSpec.swift",
"OpenAITests/Unit Tests/Completions/CompletionsEndpointSpec.swift",
"OpenAITests/Unit Tests/Embeddings/EmbeddingsAPIClientSpec.swift",
"OpenAITests/Unit Tests/Embeddings/EmbeddingsEndpointSpec.swift",
"OpenAITests/Unit Tests/Embeddings/EmbeddingsParserSpec.swift",
"OpenAITests/Unit Tests/Embeddings/EmbeddingsRequestSpec.swift",
"OpenAITests/Unit Tests/Images/CreateImageAPIClientSpec.swift",
"OpenAITests/Unit Tests/Images/CreateImageEndpointSpec.swift",
"OpenAITests/Unit Tests/Images/CreateImageParserSpec.swift",
"OpenAITests/Unit Tests/Images/CreateImageRequestSpec.swift",
"OpenAITests/Unit Tests/ListModels/ListModelsAPIClientSpec.swift",
"OpenAITests/Unit Tests/ListModels/ListModelsEndpointSpec.swift",
"OpenAITests/Unit Tests/ListModels/ListModelsParserSpec.swift",
"OpenAITests/Unit Tests/ListModels/ListModelsRequestSpec.swift",
"OpenAITests/Unit Tests/Moderations/ModerationsAPIClientSpec.swift",
"OpenAITests/Unit Tests/Moderations/ModerationsEndpointSpec.swift",
"OpenAITests/Unit Tests/Moderations/ModerationsParserSpec.swift",
"OpenAITests/Unit Tests/Moderations/ModerationsRequestSpec.swift"
],
"target_dependencies" : [
"SwiftOpenAI"
],
"type" : "test"
},
{
"c99name" : "SwiftOpenAI",
"module_type" : "SwiftTarget",
"name" : "SwiftOpenAI",
"path" : "Sources/SwiftOpenAI",
"product_memberships" : [
"SwiftOpenAI"
],
"sources" : [
"APIClient/API.swift",
"APIClient/Endpoint/Endpoint.swift",
"APIClient/Parser/Parser.swift",
"APIClient/Requester/APIError.swift",
"APIClient/Requester/RequestBuilder.swift",
"APIClient/Requester/Requester.swift",
"APIClient/Router/BaseEnvironment.swift",
"APIClient/Router/Router.swift",
"OpenAI/DataModels/Audio/CreateTranscriptionDataModel.swift",
"OpenAI/DataModels/Audio/CreateTranslationDataModel.swift",
"OpenAI/DataModels/Audio/OpenAIAudioResponseType.swift",
"OpenAI/DataModels/Audio/OpenAITTSModelType.swift",
"OpenAI/DataModels/Audio/OpenAITranscriptionModelType.swift",
"OpenAI/DataModels/Audio/OpenAIVoiceType.swift",
"OpenAI/DataModels/Chat/ChatCompletionsDataModel.swift",
"OpenAI/DataModels/Chat/ChatCompletionsOptionalParameters.swift",
"OpenAI/DataModels/Chat/ChatCompletionsStreamDataModel.swift",
"OpenAI/DataModels/Completions/CompletionsDataModel.swift",
"OpenAI/DataModels/Completions/CompletionsOptionalParameters.swift",
"OpenAI/DataModels/Embedding/EmbeddingDataModel.swift",
"OpenAI/DataModels/Images/CreateImageDataModel.swift",
"OpenAI/DataModels/Images/ImageSize.swift",
"OpenAI/DataModels/Message/MessageChatGPT.swift",
"OpenAI/DataModels/Message/MessageChatImageInput.swift",
"OpenAI/DataModels/Message/MessageRoleType.swift",
"OpenAI/DataModels/Models/ModelDataModel.swift",
"OpenAI/DataModels/Moderations/ModerationsDataModel.swift",
"OpenAI/DataModels/OpenAIError.swift",
"OpenAI/DataModels/OpenAIModelType.swift",
"OpenAI/Environment/OpenAIBaseEnvironment.swift",
"OpenAI/OpenAIEndpoints/List/Audio/CreateSpeechEndpoint.swift",
"OpenAI/OpenAIEndpoints/List/Audio/CreateTranscriptionEndpoint.swift",
"OpenAI/OpenAIEndpoints/List/Audio/CreateTranslationEndpoint.swift",
"OpenAI/OpenAIEndpoints/List/Chat/ChatCompletionsEndpoint.swift",
"OpenAI/OpenAIEndpoints/List/Chat/ChatCompletionsImageInputEndpoint.swift",
"OpenAI/OpenAIEndpoints/List/Chat/CompletionsEndpoint.swift",
"OpenAI/OpenAIEndpoints/List/Embeddings/EmbeddingsEndpoint.swift",
"OpenAI/OpenAIEndpoints/List/Image/CreateImageEndpoint.swift",
"OpenAI/OpenAIEndpoints/List/Image/EditImageEndpoint.swift",
"OpenAI/OpenAIEndpoints/List/Image/VariationImageEndpoint.swift",
"OpenAI/OpenAIEndpoints/List/Models/ListModelsEndpoint.swift",
"OpenAI/OpenAIEndpoints/List/Moderation/ModerationEndpoint.swift",
"OpenAI/OpenAIEndpoints/OpenAIEndpoints.swift",
"OpenAI/Requests/Audio/CreateSpeechRequest.swift",
"OpenAI/Requests/Audio/CreateTranscriptionRequest.swift",
"OpenAI/Requests/Audio/CreateTranslationRequest.swift",
"OpenAI/Requests/ChatCompletions/CreateChatCompletionsImageInputRequest.swift",
"OpenAI/Requests/ChatCompletions/CreateChatCompletionsRequest.swift",
"OpenAI/Requests/ChatCompletions/Stream/ChatCompletionsStreamMapper.swift",
"OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift",
"OpenAI/Requests/Completions/CompletionsRequest.swift",
"OpenAI/Requests/Embeddings/EmbeddingsRequest.swift",
"OpenAI/Requests/Images/CreateImagesRequest.swift",
"OpenAI/Requests/Images/EditImageRequest.swift",
"OpenAI/Requests/Images/VariationImageRequest.swift",
"OpenAI/Requests/Models/ListModelsRequest.swift",
"OpenAI/Requests/Moderations/ModerationsRequest.swift",
"OpenAI/Requests/MultipartFormData.swift",
"OpenAI/SwiftOpenAI.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7.1"
}
Done.