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 OpenAI, reference main (01c08e), with Swift 6.2 (beta) for Linux on 2 Sep 2025 12:44:56 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Recouse/OpenAI.git
Reference: main
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/Recouse/OpenAI
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 01c08ef Add more response types
Cloned https://github.com/Recouse/OpenAI.git
Revision (git rev-parse @):
01c08efdd5bc3ac48b40ae3a877800056aacfb82
SUCCESS checkout https://github.com/Recouse/OpenAI.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Recouse/OpenAI.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:c6c8e08ea30bca759adf847aac87887750120fe9b6eaea09f5af37036a41e81a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/mattt/JSONSchema.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/Recouse/EventSource.git
[1/192] Fetching jsonschema
[192/952] Fetching jsonschema, eventsource
[953/4855] Fetching jsonschema, eventsource, swift-log
Fetched https://github.com/mattt/JSONSchema.git from cache (0.37s)
Fetched https://github.com/Recouse/EventSource.git from cache (0.37s)
Fetched https://github.com/apple/swift-log.git from cache (0.37s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (0.79s)
Computing version for https://github.com/Recouse/EventSource.git
Computed https://github.com/Recouse/EventSource.git at 0.1.5 (0.35s)
Computing version for https://github.com/mattt/JSONSchema.git
Computed https://github.com/mattt/JSONSchema.git at 1.3.1 (0.36s)
Fetching https://github.com/apple/swift-collections.git
[1/17394] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.13s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (1.81s)
Creating working copy for https://github.com/mattt/JSONSchema.git
Working copy of https://github.com/mattt/JSONSchema.git resolved at 1.3.1
Creating working copy for https://github.com/Recouse/EventSource.git
Working copy of https://github.com/Recouse/EventSource.git resolved at 0.1.5
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.4
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.1
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/35] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[9/35] Compiling InternalCollectionsUtilities UInt+reversed.swift
[10/36] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[11/36] Compiling InternalCollectionsUtilities Debugging.swift
[12/36] Compiling InternalCollectionsUtilities Descriptions.swift
[13/36] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[14/36] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[15/36] Emitting module InternalCollectionsUtilities
[16/36] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[17/36] Compiling InternalCollectionsUtilities Integer rank.swift
[18/36] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[19/36] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[20/36] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[21/36] Compiling InternalCollectionsUtilities _SortedCollection.swift
[22/36] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[24/92] Emitting module Logging
[25/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[26/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[27/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[28/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[29/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[30/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[31/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[32/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[33/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[34/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[35/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[36/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[37/92] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[38/92] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[39/99] Compiling EventSource Extensions.swift
[40/99] Compiling EventSource Headers.swift
[41/99] Compiling EventSource EventSourceError.swift
[42/100] Compiling EventSource ServerEvent.swift
[43/100] Compiling EventSource Mutex.swift
[44/100] Compiling OrderedCollections _HashTable+Bucket.swift
[45/100] Compiling OrderedCollections _HashTable+BucketIterator.swift
[46/100] Emitting module EventSource
[47/100] Compiling EventSource EventSource.swift
[48/100] Compiling Logging MetadataProvider.swift
[49/100] Compiling Logging Logging.swift
[50/100] Compiling Logging LogHandler.swift
[51/100] Compiling Logging Locks.swift
[52/101] Compiling EventSource SessionDelegate.swift
[55/102] Compiling OrderedCollections OrderedDictionary.swift
[56/102] Compiling OrderedCollections OrderedSet+Codable.swift
[57/102] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[58/102] Compiling OrderedCollections OrderedSet+Descriptions.swift
[59/102] Compiling OrderedCollections OrderedSet+Diffing.swift
[60/102] Compiling OrderedCollections OrderedSet+Equatable.swift
[61/102] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[62/102] Compiling OrderedCollections OrderedSet+Hashable.swift
[63/102] Compiling OrderedCollections OrderedSet+Initializers.swift
[64/102] Compiling OrderedCollections OrderedSet+Insertions.swift
[65/102] Compiling OrderedCollections OrderedSet+Invariants.swift
[66/102] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[67/102] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[68/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[69/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[70/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[71/102] Compiling OrderedCollections OrderedDictionary+Codable.swift
[72/102] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[73/102] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[74/102] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[75/102] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[76/102] Compiling OrderedCollections OrderedDictionary+Elements.swift
[77/102] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[78/102] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[79/102] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[80/102] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[81/102] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[82/102] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[83/102] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[84/102] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[85/102] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[86/102] Compiling OrderedCollections OrderedDictionary+Values.swift
[89/102] Compiling OrderedCollections _HashTable+Constants.swift
[90/102] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[91/102] Compiling OrderedCollections _HashTable+Testing.swift
[92/102] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[93/102] Compiling OrderedCollections _HashTable.swift
[94/102] Compiling OrderedCollections _Hashtable+Header.swift
[95/102] Compiling OrderedCollections OrderedSet+Sendable.swift
[96/102] Compiling OrderedCollections OrderedSet+SubSequence.swift
[97/102] Compiling OrderedCollections OrderedSet+Testing.swift
[98/102] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[99/102] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[100/102] Compiling OrderedCollections OrderedSet.swift
[101/102] Compiling OrderedCollections _UnsafeBitset.swift
[102/102] Emitting module OrderedCollections
[104/106] Emitting module JSONSchema
[105/106] Compiling JSONSchema JSONValue.swift
[106/106] Compiling JSONSchema JSONSchema.swift
[108/146] Compiling OpenAI CompletionsWrapper.swift
[109/146] Compiling OpenAI Configuration.swift
[110/146] Compiling OpenAI APIError.swift
[111/146] Compiling OpenAI JSONDecoder.swift
[112/146] Compiling OpenAI JSONEncoder.swift
[113/151] Compiling OpenAI AudioRequest.swift
[114/151] Compiling OpenAI AudioResponse.swift
[115/151] Compiling OpenAI AudioVoice.swift
[116/151] Compiling OpenAI Content.swift
[117/151] Compiling OpenAI Effort.swift
[118/151] Compiling OpenAI FinishReason.swift
[119/151] Compiling OpenAI OpenAIError.swift
[120/151] Compiling OpenAI PlatformLogger.swift
[121/151] Compiling OpenAI Model.swift
[122/151] Compiling OpenAI ModelsRequest.swift
[123/151] Compiling OpenAI ModelsResponse.swift
[124/151] Compiling OpenAI ModelsWrapper.swift
[125/151] Compiling OpenAI OpenAI.swift
[126/151] Compiling OpenAI BaseRequestHandler.swift
[127/151] Compiling OpenAI RequestHandler.swift
[128/151] Compiling OpenAI Request.swift
[129/151] Compiling OpenAI Modality.swift
[130/151] Compiling OpenAI Prompt.swift
[131/151] Compiling OpenAI ReponseFormat.swift
[132/151] Compiling OpenAI ResponseError.swift
[133/151] Compiling OpenAI Role.swift
[134/151] Compiling OpenAI ServiceTier.swift
[135/151] Compiling OpenAI TruncationStrategy.swift
[136/151] Compiling OpenAI CompletionResponse.swift
[137/151] Compiling OpenAI Completions.swift
[138/151] Compiling OpenAI CompletionsBody.swift
[139/151] Compiling OpenAI CompletionsRequest.swift
[140/151] Emitting module OpenAI
[141/151] Compiling OpenAI ChatCompletions.swift
[142/151] Compiling OpenAI ChatCompletionsBody.swift
[143/151] Compiling OpenAI ChatCompletionsRequest.swift
[144/151] Compiling OpenAI ChatCompletionsResponse.swift
[145/151] Compiling OpenAI ChatWrapper.swift
[146/151] Compiling OpenAI AudioFormat.swift
[147/151] Compiling OpenAI Responses.swift
[148/151] Compiling OpenAI ResponsesBody.swift
[149/151] Compiling OpenAI ResponsesRequest.swift
[150/151] Compiling OpenAI ResponsesResponse.swift
[151/151] Compiling OpenAI ResponsesWrapper.swift
Build complete! (24.97s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "eventsource",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.5",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Recouse/EventSource.git"
    },
    {
      "identity" : "jsonschema",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mattt/JSONSchema.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.4",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "OpenAI",
  "name" : "OpenAI",
  "path" : "/host/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",
        "JSONSchema",
        "Logging"
      ],
      "product_memberships" : [
        "OpenAI"
      ],
      "sources" : [
        "Chat/ChatCompletions.swift",
        "Chat/ChatCompletionsBody.swift",
        "Chat/ChatCompletionsRequest.swift",
        "Chat/ChatCompletionsResponse.swift",
        "Chat/ChatWrapper.swift",
        "Common/Audio/AudioFormat.swift",
        "Common/Audio/AudioRequest.swift",
        "Common/Audio/AudioResponse.swift",
        "Common/Audio/AudioVoice.swift",
        "Common/Content.swift",
        "Common/Effort.swift",
        "Common/FinishReason.swift",
        "Common/Modality.swift",
        "Common/Prompt.swift",
        "Common/ReponseFormat.swift",
        "Common/ResponseError.swift",
        "Common/Role.swift",
        "Common/ServiceTier.swift",
        "Common/TruncationStrategy.swift",
        "Completions/CompletionResponse.swift",
        "Completions/Completions.swift",
        "Completions/CompletionsBody.swift",
        "Completions/CompletionsRequest.swift",
        "Completions/CompletionsWrapper.swift",
        "Configuration.swift",
        "Extensions/APIError.swift",
        "Extensions/JSONDecoder.swift",
        "Extensions/JSONEncoder.swift",
        "Extensions/OpenAIError.swift",
        "Logger/PlatformLogger.swift",
        "Model.swift",
        "Models/ModelsRequest.swift",
        "Models/ModelsResponse.swift",
        "Models/ModelsWrapper.swift",
        "OpenAI.swift",
        "Request/Handler/BaseRequestHandler.swift",
        "Request/Handler/RequestHandler.swift",
        "Request/Request.swift",
        "Responses/Responses.swift",
        "Responses/ResponsesBody.swift",
        "Responses/ResponsesRequest.swift",
        "Responses/ResponsesResponse.swift",
        "Responses/ResponsesWrapper.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.1"
}
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:c6c8e08ea30bca759adf847aac87887750120fe9b6eaea09f5af37036a41e81a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Done.