The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DeepSwiftSeek, reference 0.0.3 (73ed94), with Swift 6.1 for macOS (SPM) on 31 May 2025 21:08:37 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tornikegomareli/DeepSwiftSeek.git
Reference: 0.0.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tornikegomareli/DeepSwiftSeek
 * tag               0.0.3      -> FETCH_HEAD
HEAD is now at 73ed94c Merge pull request #2 from ef1rspb/main
Cloned https://github.com/tornikegomareli/DeepSwiftSeek.git
Revision (git rev-parse @):
73ed94c6d2d4fd499bc0864c28f3e0f9abacbbb2
SUCCESS checkout https://github.com/tornikegomareli/DeepSwiftSeek.git at 0.0.3
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "deepswiftseek",
      "name": "DeepSwiftSeek",
      "url": "https://github.com/tornikegomareli/DeepSwiftSeek.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DeepSwiftSeek",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/tornikegomareli/DeepSwiftSeek.git
[1/404] Fetching deepswiftseek
Fetched https://github.com/tornikegomareli/DeepSwiftSeek.git from cache (3.18s)
Creating working copy for https://github.com/tornikegomareli/DeepSwiftSeek.git
Working copy of https://github.com/tornikegomareli/DeepSwiftSeek.git resolved at 0.0.3 (73ed94c)
warning: '.resolve-product-dependencies': dependency 'deepswiftseek' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tornikegomareli/DeepSwiftSeek.git
https://github.com/tornikegomareli/DeepSwiftSeek.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DeepSwiftSeek",
  "name" : "DeepSwiftSeek",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "DeepSwiftSeek",
      "targets" : [
        "DeepSwiftSeek"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DeepSwiftSeekTests",
      "module_type" : "SwiftTarget",
      "name" : "DeepSwiftSeekTests",
      "path" : "Tests/DeepSwiftSeekTests",
      "sources" : [
        "DeepSwiftSeekTests.swift"
      ],
      "target_dependencies" : [
        "DeepSwiftSeek"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DeepSwiftSeek",
      "module_type" : "SwiftTarget",
      "name" : "DeepSwiftSeek",
      "path" : "Sources/DeepSwiftSeek",
      "product_memberships" : [
        "DeepSwiftSeek"
      ],
      "sources" : [
        "ChatMessageBuilder.swift",
        "DeepSeekRequestSerializer.swift",
        "DeepSeekService.swift",
        "PublicModels/BalanceAvailability/AvailabilityResponse.swift",
        "PublicModels/ChatCompletion/ChatCompletionMessageResponse.swift",
        "PublicModels/ChatCompletion/ChatCompletionResponse.swift",
        "PublicModels/ChatCompletion/ChoiceResponse.swift",
        "PublicModels/ChatCompletion/CompletionTokensDetails.swift",
        "PublicModels/ChatCompletion/ContentLogProb.swift",
        "PublicModels/ChatCompletion/FunctionCall.swift",
        "PublicModels/ChatCompletion/LogProbs.swift",
        "PublicModels/ChatCompletion/ToolCall.swift",
        "PublicModels/ChatCompletion/TopLogProb.swift",
        "PublicModels/ChatCompletion/Usage.swift",
        "PublicModels/Configuration.swift",
        "PublicModels/DeepSeekModel.swift",
        "PublicModels/DeepSeekModelsList.swift",
        "PublicModels/Errors/DeepSeekError.swift",
        "PublicModels/Errors/DeepSeekErrorResponse.swift",
        "PublicModels/Errors/Response->Error.swift",
        "PublicModels/RequestModels/ChatMessageRequest.swift",
        "PublicModels/RequestModels/ChatParameters.swift",
        "PublicModels/RequestModels/MessegingRole.swift",
        "PublicModels/RequestModels/ResponseFormat.swift",
        "PublicModels/RequestModels/StreamOptions.swift",
        "PublicModels/RequestModels/Tool.swift",
        "PublicModels/RequestModels/ToolChoice.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/28] Emitting module DeepSwiftSeek
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:28:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 15 |
 16 | @available(iOS 15.0, *)
 17 | public protocol DeepSeekService {
    |                 `- note: add @available attribute to enclosing protocol
 18 |   func chatCompletions(
 19 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
    :
 22 |   ) async throws -> ChatCompletionResponse
 23 |
 24 |   func chatCompletionStream(
    |        `- note: add @available attribute to enclosing instance method
 25 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
 26 |     model: DeepSeekModel,
 27 |     parameters: ChatParameters
 28 |   ) async throws -> AsyncThrowingStream<String, Error>
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 29 | }
 30 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:48:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
 47 |     parameters: ChatParameters
 48 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 49 |     let streamParameters = parameters.withStream(true)
 50 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:117:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
116 |     parameters: ChatParameters
117 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
118 |     let streamParameters = parameters.withStream(true)
119 |
[4/30] Compiling DeepSwiftSeek Tool.swift
[5/30] Compiling DeepSwiftSeek ToolChoice.swift
[6/30] Compiling DeepSwiftSeek ChatParameters.swift
[7/30] Compiling DeepSwiftSeek MessegingRole.swift
[8/30] Compiling DeepSwiftSeek ResponseFormat.swift
[9/30] Compiling DeepSwiftSeek StreamOptions.swift
[10/30] Compiling DeepSwiftSeek TopLogProb.swift
[11/30] Compiling DeepSwiftSeek Usage.swift
[12/30] Compiling DeepSwiftSeek Configuration.swift
[13/30] Compiling DeepSwiftSeek DeepSeekModel.swift
[14/30] Compiling DeepSwiftSeek DeepSeekModelsList.swift
[15/30] Compiling DeepSwiftSeek DeepSeekError.swift
[16/30] Compiling DeepSwiftSeek FunctionCall.swift
[17/30] Compiling DeepSwiftSeek LogProbs.swift
[18/30] Compiling DeepSwiftSeek ToolCall.swift
[19/30] Compiling DeepSwiftSeek DeepSeekErrorResponse.swift
[20/30] Compiling DeepSwiftSeek Response->Error.swift
[21/30] Compiling DeepSwiftSeek ChatMessageRequest.swift
[22/30] Compiling DeepSwiftSeek ChoiceResponse.swift
[23/30] Compiling DeepSwiftSeek CompletionTokensDetails.swift
[24/30] Compiling DeepSwiftSeek ContentLogProb.swift
[25/30] Compiling DeepSwiftSeek AvailabilityResponse.swift
[26/30] Compiling DeepSwiftSeek ChatCompletionMessageResponse.swift
[27/30] Compiling DeepSwiftSeek ChatCompletionResponse.swift
[28/30] Compiling DeepSwiftSeek ChatMessageBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:28:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 15 |
 16 | @available(iOS 15.0, *)
 17 | public protocol DeepSeekService {
    |                 `- note: add @available attribute to enclosing protocol
 18 |   func chatCompletions(
 19 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
    :
 22 |   ) async throws -> ChatCompletionResponse
 23 |
 24 |   func chatCompletionStream(
    |        `- note: add @available attribute to enclosing instance method
 25 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
 26 |     model: DeepSeekModel,
 27 |     parameters: ChatParameters
 28 |   ) async throws -> AsyncThrowingStream<String, Error>
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 29 | }
 30 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:48:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
 47 |     parameters: ChatParameters
 48 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 49 |     let streamParameters = parameters.withStream(true)
 50 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:117:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
116 |     parameters: ChatParameters
117 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
118 |     let streamParameters = parameters.withStream(true)
119 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:57:12: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 55 |     )
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
    |            |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
 58 |       Task {
 59 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:58:7: error: 'Task' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
 58 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:58:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
 58 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:60:53: error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 58 |       Task {
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
    |                                                     |- error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                     `- note: add 'if #available' version check
 61 |
 62 |           guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:81:39: error: 'lines' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 79 |           }
 80 |
 81 |           for try await line in bytes.lines {
    |                                       |- error: 'lines' is only available in macOS 12.0 or newer
    |                                       `- note: add 'if #available' version check
 82 |             guard !line.isEmpty else { continue }
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:126:12: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
124 |     )
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
    |            |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
127 |       Task {
128 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:127:7: error: 'Task' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
127 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:127:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
127 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:129:53: error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
127 |       Task {
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
    |                                                     |- error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                     `- note: add 'if #available' version check
130 |
131 |           guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:150:39: error: 'lines' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
148 |           }
149 |
150 |           for try await line in bytes.lines {
    |                                       |- error: 'lines' is only available in macOS 12.0 or newer
    |                                       `- note: add 'if #available' version check
151 |             guard !line.isEmpty else { continue }
152 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:178:46: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
174 |   }
175 |
176 |   public func listModels() async throws -> DeepSeekModelsList {
    |               `- note: add @available attribute to enclosing instance method
177 |     let request = try serializer.serializeModelsRequest()
178 |     let (data, response) = try await session.data(for: request)
    |                                              |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                              `- note: add 'if #available' version check
179 |
180 |     guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:194:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
189 |   }
190 |
191 |   public func fetchUserBalance() async throws -> AvailabilityResponse {
    |               `- note: add @available attribute to enclosing instance method
192 |     let request = try serializer.serializeBalanceRequest()
193 |     do {
194 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
195 |
196 |       guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:222:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
208 |   }
209 |
210 |   public func fimCompletions(
    |               `- note: add @available attribute to enclosing instance method
211 |     messages: () -> [ChatMessageRequest],
212 |     model: DeepSeekModel,
    :
220 |
221 |     do {
222 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
223 |
224 |       guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:253:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
239 |   }
240 |
241 |   public func chatCompletions(
    |               `- note: add @available attribute to enclosing instance method
242 |     messages: () -> [ChatMessageRequest],
243 |     model: DeepSeekModel,
    :
251 |
252 |     do {
253 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
254 |
255 |       guard let httpResponse = response as? HTTPURLResponse else {
[29/30] Compiling DeepSwiftSeek DeepSeekRequestSerializer.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:28:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 15 |
 16 | @available(iOS 15.0, *)
 17 | public protocol DeepSeekService {
    |                 `- note: add @available attribute to enclosing protocol
 18 |   func chatCompletions(
 19 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
    :
 22 |   ) async throws -> ChatCompletionResponse
 23 |
 24 |   func chatCompletionStream(
    |        `- note: add @available attribute to enclosing instance method
 25 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
 26 |     model: DeepSeekModel,
 27 |     parameters: ChatParameters
 28 |   ) async throws -> AsyncThrowingStream<String, Error>
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 29 | }
 30 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:48:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
 47 |     parameters: ChatParameters
 48 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 49 |     let streamParameters = parameters.withStream(true)
 50 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:117:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
116 |     parameters: ChatParameters
117 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
118 |     let streamParameters = parameters.withStream(true)
119 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:57:12: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 55 |     )
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
    |            |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
 58 |       Task {
 59 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:58:7: error: 'Task' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
 58 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:58:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
 58 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:60:53: error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 58 |       Task {
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
    |                                                     |- error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                     `- note: add 'if #available' version check
 61 |
 62 |           guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:81:39: error: 'lines' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 79 |           }
 80 |
 81 |           for try await line in bytes.lines {
    |                                       |- error: 'lines' is only available in macOS 12.0 or newer
    |                                       `- note: add 'if #available' version check
 82 |             guard !line.isEmpty else { continue }
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:126:12: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
124 |     )
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
    |            |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
127 |       Task {
128 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:127:7: error: 'Task' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
127 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:127:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
127 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:129:53: error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
127 |       Task {
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
    |                                                     |- error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                     `- note: add 'if #available' version check
130 |
131 |           guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:150:39: error: 'lines' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
148 |           }
149 |
150 |           for try await line in bytes.lines {
    |                                       |- error: 'lines' is only available in macOS 12.0 or newer
    |                                       `- note: add 'if #available' version check
151 |             guard !line.isEmpty else { continue }
152 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:178:46: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
174 |   }
175 |
176 |   public func listModels() async throws -> DeepSeekModelsList {
    |               `- note: add @available attribute to enclosing instance method
177 |     let request = try serializer.serializeModelsRequest()
178 |     let (data, response) = try await session.data(for: request)
    |                                              |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                              `- note: add 'if #available' version check
179 |
180 |     guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:194:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
189 |   }
190 |
191 |   public func fetchUserBalance() async throws -> AvailabilityResponse {
    |               `- note: add @available attribute to enclosing instance method
192 |     let request = try serializer.serializeBalanceRequest()
193 |     do {
194 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
195 |
196 |       guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:222:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
208 |   }
209 |
210 |   public func fimCompletions(
    |               `- note: add @available attribute to enclosing instance method
211 |     messages: () -> [ChatMessageRequest],
212 |     model: DeepSeekModel,
    :
220 |
221 |     do {
222 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
223 |
224 |       guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:253:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
239 |   }
240 |
241 |   public func chatCompletions(
    |               `- note: add @available attribute to enclosing instance method
242 |     messages: () -> [ChatMessageRequest],
243 |     model: DeepSeekModel,
    :
251 |
252 |     do {
253 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
254 |
255 |       guard let httpResponse = response as? HTTPURLResponse else {
[30/30] Compiling DeepSwiftSeek DeepSeekService.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:28:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 15 |
 16 | @available(iOS 15.0, *)
 17 | public protocol DeepSeekService {
    |                 `- note: add @available attribute to enclosing protocol
 18 |   func chatCompletions(
 19 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
    :
 22 |   ) async throws -> ChatCompletionResponse
 23 |
 24 |   func chatCompletionStream(
    |        `- note: add @available attribute to enclosing instance method
 25 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
 26 |     model: DeepSeekModel,
 27 |     parameters: ChatParameters
 28 |   ) async throws -> AsyncThrowingStream<String, Error>
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 29 | }
 30 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:48:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
 47 |     parameters: ChatParameters
 48 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 49 |     let streamParameters = parameters.withStream(true)
 50 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:117:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
116 |     parameters: ChatParameters
117 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
118 |     let streamParameters = parameters.withStream(true)
119 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:57:12: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 55 |     )
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
    |            |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
 58 |       Task {
 59 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:58:7: error: 'Task' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
 58 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:58:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
 58 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:60:53: error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 58 |       Task {
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
    |                                                     |- error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                     `- note: add 'if #available' version check
 61 |
 62 |           guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:81:39: error: 'lines' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 79 |           }
 80 |
 81 |           for try await line in bytes.lines {
    |                                       |- error: 'lines' is only available in macOS 12.0 or newer
    |                                       `- note: add 'if #available' version check
 82 |             guard !line.isEmpty else { continue }
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:126:12: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
124 |     )
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
    |            |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
127 |       Task {
128 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:127:7: error: 'Task' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
127 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:127:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
127 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:129:53: error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
127 |       Task {
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
    |                                                     |- error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                     `- note: add 'if #available' version check
130 |
131 |           guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:150:39: error: 'lines' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
148 |           }
149 |
150 |           for try await line in bytes.lines {
    |                                       |- error: 'lines' is only available in macOS 12.0 or newer
    |                                       `- note: add 'if #available' version check
151 |             guard !line.isEmpty else { continue }
152 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:178:46: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
174 |   }
175 |
176 |   public func listModels() async throws -> DeepSeekModelsList {
    |               `- note: add @available attribute to enclosing instance method
177 |     let request = try serializer.serializeModelsRequest()
178 |     let (data, response) = try await session.data(for: request)
    |                                              |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                              `- note: add 'if #available' version check
179 |
180 |     guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:194:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
189 |   }
190 |
191 |   public func fetchUserBalance() async throws -> AvailabilityResponse {
    |               `- note: add @available attribute to enclosing instance method
192 |     let request = try serializer.serializeBalanceRequest()
193 |     do {
194 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
195 |
196 |       guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:222:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
208 |   }
209 |
210 |   public func fimCompletions(
    |               `- note: add @available attribute to enclosing instance method
211 |     messages: () -> [ChatMessageRequest],
212 |     model: DeepSeekModel,
    :
220 |
221 |     do {
222 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
223 |
224 |       guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:253:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
239 |   }
240 |
241 |   public func chatCompletions(
    |               `- note: add @available attribute to enclosing instance method
242 |     messages: () -> [ChatMessageRequest],
243 |     model: DeepSeekModel,
    :
251 |
252 |     do {
253 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
254 |
255 |       guard let httpResponse = response as? HTTPURLResponse else {
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/27] Emitting module DeepSwiftSeek
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:28:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 15 |
 16 | @available(iOS 15.0, *)
 17 | public protocol DeepSeekService {
    |                 `- note: add @available attribute to enclosing protocol
 18 |   func chatCompletions(
 19 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
    :
 22 |   ) async throws -> ChatCompletionResponse
 23 |
 24 |   func chatCompletionStream(
    |        `- note: add @available attribute to enclosing instance method
 25 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
 26 |     model: DeepSeekModel,
 27 |     parameters: ChatParameters
 28 |   ) async throws -> AsyncThrowingStream<String, Error>
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 29 | }
 30 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:48:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
 47 |     parameters: ChatParameters
 48 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 49 |     let streamParameters = parameters.withStream(true)
 50 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:117:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
116 |     parameters: ChatParameters
117 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
118 |     let streamParameters = parameters.withStream(true)
119 |
[3/29] Compiling DeepSwiftSeek ChoiceResponse.swift
[4/29] Compiling DeepSwiftSeek CompletionTokensDetails.swift
[5/29] Compiling DeepSwiftSeek ContentLogProb.swift
[6/29] Compiling DeepSwiftSeek TopLogProb.swift
[7/29] Compiling DeepSwiftSeek Usage.swift
[8/29] Compiling DeepSwiftSeek Configuration.swift
[9/29] Compiling DeepSwiftSeek DeepSeekErrorResponse.swift
[10/29] Compiling DeepSwiftSeek Response->Error.swift
[11/29] Compiling DeepSwiftSeek ChatMessageRequest.swift
[12/29] Compiling DeepSwiftSeek FunctionCall.swift
[13/29] Compiling DeepSwiftSeek LogProbs.swift
[14/29] Compiling DeepSwiftSeek ToolCall.swift
[15/29] Compiling DeepSwiftSeek Tool.swift
[16/29] Compiling DeepSwiftSeek ToolChoice.swift
[17/29] Compiling DeepSwiftSeek AvailabilityResponse.swift
[18/29] Compiling DeepSwiftSeek ChatCompletionMessageResponse.swift
[19/29] Compiling DeepSwiftSeek ChatCompletionResponse.swift
[20/29] Compiling DeepSwiftSeek ResponseFormat.swift
[21/29] Compiling DeepSwiftSeek StreamOptions.swift
[22/29] Compiling DeepSwiftSeek ChatParameters.swift
[23/29] Compiling DeepSwiftSeek MessegingRole.swift
[24/29] Compiling DeepSwiftSeek DeepSeekModel.swift
[25/29] Compiling DeepSwiftSeek DeepSeekModelsList.swift
[26/29] Compiling DeepSwiftSeek DeepSeekError.swift
[27/29] Compiling DeepSwiftSeek ChatMessageBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:28:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 15 |
 16 | @available(iOS 15.0, *)
 17 | public protocol DeepSeekService {
    |                 `- note: add @available attribute to enclosing protocol
 18 |   func chatCompletions(
 19 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
    :
 22 |   ) async throws -> ChatCompletionResponse
 23 |
 24 |   func chatCompletionStream(
    |        `- note: add @available attribute to enclosing instance method
 25 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
 26 |     model: DeepSeekModel,
 27 |     parameters: ChatParameters
 28 |   ) async throws -> AsyncThrowingStream<String, Error>
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 29 | }
 30 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:48:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
 47 |     parameters: ChatParameters
 48 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 49 |     let streamParameters = parameters.withStream(true)
 50 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:117:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
116 |     parameters: ChatParameters
117 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
118 |     let streamParameters = parameters.withStream(true)
119 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:57:12: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 55 |     )
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
    |            |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
 58 |       Task {
 59 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:58:7: error: 'Task' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
 58 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:58:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
 58 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:60:53: error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 58 |       Task {
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
    |                                                     |- error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                     `- note: add 'if #available' version check
 61 |
 62 |           guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:81:39: error: 'lines' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 79 |           }
 80 |
 81 |           for try await line in bytes.lines {
    |                                       |- error: 'lines' is only available in macOS 12.0 or newer
    |                                       `- note: add 'if #available' version check
 82 |             guard !line.isEmpty else { continue }
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:126:12: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
124 |     )
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
    |            |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
127 |       Task {
128 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:127:7: error: 'Task' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
127 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:127:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
127 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:129:53: error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
127 |       Task {
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
    |                                                     |- error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                     `- note: add 'if #available' version check
130 |
131 |           guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:150:39: error: 'lines' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
148 |           }
149 |
150 |           for try await line in bytes.lines {
    |                                       |- error: 'lines' is only available in macOS 12.0 or newer
    |                                       `- note: add 'if #available' version check
151 |             guard !line.isEmpty else { continue }
152 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:178:46: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
174 |   }
175 |
176 |   public func listModels() async throws -> DeepSeekModelsList {
    |               `- note: add @available attribute to enclosing instance method
177 |     let request = try serializer.serializeModelsRequest()
178 |     let (data, response) = try await session.data(for: request)
    |                                              |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                              `- note: add 'if #available' version check
179 |
180 |     guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:194:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
189 |   }
190 |
191 |   public func fetchUserBalance() async throws -> AvailabilityResponse {
    |               `- note: add @available attribute to enclosing instance method
192 |     let request = try serializer.serializeBalanceRequest()
193 |     do {
194 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
195 |
196 |       guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:222:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
208 |   }
209 |
210 |   public func fimCompletions(
    |               `- note: add @available attribute to enclosing instance method
211 |     messages: () -> [ChatMessageRequest],
212 |     model: DeepSeekModel,
    :
220 |
221 |     do {
222 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
223 |
224 |       guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:253:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
239 |   }
240 |
241 |   public func chatCompletions(
    |               `- note: add @available attribute to enclosing instance method
242 |     messages: () -> [ChatMessageRequest],
243 |     model: DeepSeekModel,
    :
251 |
252 |     do {
253 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
254 |
255 |       guard let httpResponse = response as? HTTPURLResponse else {
[28/29] Compiling DeepSwiftSeek DeepSeekRequestSerializer.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:28:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 15 |
 16 | @available(iOS 15.0, *)
 17 | public protocol DeepSeekService {
    |                 `- note: add @available attribute to enclosing protocol
 18 |   func chatCompletions(
 19 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
    :
 22 |   ) async throws -> ChatCompletionResponse
 23 |
 24 |   func chatCompletionStream(
    |        `- note: add @available attribute to enclosing instance method
 25 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
 26 |     model: DeepSeekModel,
 27 |     parameters: ChatParameters
 28 |   ) async throws -> AsyncThrowingStream<String, Error>
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 29 | }
 30 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:48:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
 47 |     parameters: ChatParameters
 48 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 49 |     let streamParameters = parameters.withStream(true)
 50 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:117:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
116 |     parameters: ChatParameters
117 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
118 |     let streamParameters = parameters.withStream(true)
119 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:57:12: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 55 |     )
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
    |            |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
 58 |       Task {
 59 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:58:7: error: 'Task' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
 58 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:58:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
 58 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:60:53: error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 58 |       Task {
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
    |                                                     |- error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                     `- note: add 'if #available' version check
 61 |
 62 |           guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:81:39: error: 'lines' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 79 |           }
 80 |
 81 |           for try await line in bytes.lines {
    |                                       |- error: 'lines' is only available in macOS 12.0 or newer
    |                                       `- note: add 'if #available' version check
 82 |             guard !line.isEmpty else { continue }
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:126:12: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
124 |     )
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
    |            |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
127 |       Task {
128 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:127:7: error: 'Task' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
127 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:127:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
127 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:129:53: error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
127 |       Task {
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
    |                                                     |- error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                     `- note: add 'if #available' version check
130 |
131 |           guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:150:39: error: 'lines' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
148 |           }
149 |
150 |           for try await line in bytes.lines {
    |                                       |- error: 'lines' is only available in macOS 12.0 or newer
    |                                       `- note: add 'if #available' version check
151 |             guard !line.isEmpty else { continue }
152 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:178:46: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
174 |   }
175 |
176 |   public func listModels() async throws -> DeepSeekModelsList {
    |               `- note: add @available attribute to enclosing instance method
177 |     let request = try serializer.serializeModelsRequest()
178 |     let (data, response) = try await session.data(for: request)
    |                                              |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                              `- note: add 'if #available' version check
179 |
180 |     guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:194:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
189 |   }
190 |
191 |   public func fetchUserBalance() async throws -> AvailabilityResponse {
    |               `- note: add @available attribute to enclosing instance method
192 |     let request = try serializer.serializeBalanceRequest()
193 |     do {
194 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
195 |
196 |       guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:222:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
208 |   }
209 |
210 |   public func fimCompletions(
    |               `- note: add @available attribute to enclosing instance method
211 |     messages: () -> [ChatMessageRequest],
212 |     model: DeepSeekModel,
    :
220 |
221 |     do {
222 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
223 |
224 |       guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:253:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
239 |   }
240 |
241 |   public func chatCompletions(
    |               `- note: add @available attribute to enclosing instance method
242 |     messages: () -> [ChatMessageRequest],
243 |     model: DeepSeekModel,
    :
251 |
252 |     do {
253 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
254 |
255 |       guard let httpResponse = response as? HTTPURLResponse else {
[29/29] Compiling DeepSwiftSeek DeepSeekService.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:28:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 15 |
 16 | @available(iOS 15.0, *)
 17 | public protocol DeepSeekService {
    |                 `- note: add @available attribute to enclosing protocol
 18 |   func chatCompletions(
 19 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
    :
 22 |   ) async throws -> ChatCompletionResponse
 23 |
 24 |   func chatCompletionStream(
    |        `- note: add @available attribute to enclosing instance method
 25 |     @ChatMessageBuilder messages: () -> [ChatMessageRequest],
 26 |     model: DeepSeekModel,
 27 |     parameters: ChatParameters
 28 |   ) async throws -> AsyncThrowingStream<String, Error>
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 29 | }
 30 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:48:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
 47 |     parameters: ChatParameters
 48 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 49 |     let streamParameters = parameters.withStream(true)
 50 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:117:21: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
116 |     parameters: ChatParameters
117 |   ) async throws -> AsyncThrowingStream<String, any Error> {
    |                     `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
118 |     let streamParameters = parameters.withStream(true)
119 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:57:12: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 55 |     )
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
    |            |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
 58 |       Task {
 59 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:58:7: error: 'Task' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
 58 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:58:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 56 |
 57 |     return AsyncThrowingStream { @Sendable continuation in
 58 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:60:53: error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 58 |       Task {
 59 |         do {
 60 |           let (bytes, response) = try await session.bytes(for: request)
    |                                                     |- error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                     `- note: add 'if #available' version check
 61 |
 62 |           guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:81:39: error: 'lines' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
 42 |   }
 43 |
 44 |   public func fimCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
 45 |     messages: () -> [ChatMessageRequest],
 46 |     model: DeepSeekModel,
    :
 79 |           }
 80 |
 81 |           for try await line in bytes.lines {
    |                                       |- error: 'lines' is only available in macOS 12.0 or newer
    |                                       `- note: add 'if #available' version check
 82 |             guard !line.isEmpty else { continue }
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:126:12: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
124 |     )
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
    |            |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
127 |       Task {
128 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:127:7: error: 'Task' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
127 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:127:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
125 |
126 |     return AsyncThrowingStream { @Sendable continuation in
127 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:129:53: error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
127 |       Task {
128 |         do {
129 |           let (bytes, response) = try await session.bytes(for: request)
    |                                                     |- error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                     `- note: add 'if #available' version check
130 |
131 |           guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:150:39: error: 'lines' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
111 |
112 |   @available(iOS 15.0, *)
113 |   public func chatCompletionStream(
    |               `- note: add @available attribute to enclosing instance method
114 |     messages: () -> [ChatMessageRequest],
115 |     model: DeepSeekModel,
    :
148 |           }
149 |
150 |           for try await line in bytes.lines {
    |                                       |- error: 'lines' is only available in macOS 12.0 or newer
    |                                       `- note: add 'if #available' version check
151 |             guard !line.isEmpty else { continue }
152 |
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:178:46: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
174 |   }
175 |
176 |   public func listModels() async throws -> DeepSeekModelsList {
    |               `- note: add @available attribute to enclosing instance method
177 |     let request = try serializer.serializeModelsRequest()
178 |     let (data, response) = try await session.data(for: request)
    |                                              |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                              `- note: add 'if #available' version check
179 |
180 |     guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:194:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
189 |   }
190 |
191 |   public func fetchUserBalance() async throws -> AvailabilityResponse {
    |               `- note: add @available attribute to enclosing instance method
192 |     let request = try serializer.serializeBalanceRequest()
193 |     do {
194 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
195 |
196 |       guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:222:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
208 |   }
209 |
210 |   public func fimCompletions(
    |               `- note: add @available attribute to enclosing instance method
211 |     messages: () -> [ChatMessageRequest],
212 |     model: DeepSeekModel,
    :
220 |
221 |     do {
222 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
223 |
224 |       guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/DeepSwiftSeek/DeepSeekService.swift:253:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 31 | /// TODO: Need to add streaming support
 32 | @available(iOS 15.0, *)
 33 | public final class DeepSeekClient: DeepSeekService, Sendable {
    |                    `- note: add @available attribute to enclosing class
 34 |   private let configuration: Configuration
 35 |   private let session: URLSession
    :
239 |   }
240 |
241 |   public func chatCompletions(
    |               `- note: add @available attribute to enclosing instance method
242 |     messages: () -> [ChatMessageRequest],
243 |     model: DeepSeekModel,
    :
251 |
252 |     do {
253 |       let (data, response) = try await session.data(for: request)
    |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
254 |
255 |       guard let httpResponse = response as? HTTPURLResponse else {
BUILD FAILURE 6.1 macosSpm