Build Information
Failed to build swift-ai-sdk, reference 0.3.0 (d8d108), with Swift 6.3 for Android on 13 Aug 2026 01:23:08 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | ) {
19 | self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: value of type '_' expected to be instance of class or class-constrained type
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
18 | ) {
19 | self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | public var headers: [String: String]
8 | public var queryParams: [String: String]
9 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public init(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | ) {
19 | self.name = name
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'AnyObject'
7 | public var headers: [String: String]
8 | public var queryParams: [String: String]
9 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'AnyObject'
10 |
11 | public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:38:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
36 | headers: headers,
37 | queryParams: queryParams,
38 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
39 | providerName: name
40 | )
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:49:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
47 | baseURL: baseURL,
48 | headers: headers,
49 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
50 | providerName: name
51 | )
[34/136] Compiling AI MistralModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/GoogleModel.swift:41:54: error: value of type 'URLSession' has no member 'bytes'
39 | urlSession: URLSession
40 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
41 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
42 |
43 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | ) {
19 | self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: value of type '_' expected to be instance of class or class-constrained type
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
18 | ) {
19 | self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | public var headers: [String: String]
8 | public var queryParams: [String: String]
9 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public init(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | ) {
19 | self.name = name
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'AnyObject'
7 | public var headers: [String: String]
8 | public var queryParams: [String: String]
9 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'AnyObject'
10 |
11 | public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:38:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
36 | headers: headers,
37 | queryParams: queryParams,
38 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
39 | providerName: name
40 | )
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:49:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
47 | baseURL: baseURL,
48 | headers: headers,
49 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
50 | providerName: name
51 | )
[35/136] Compiling AI MoonshotModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/GoogleModel.swift:41:54: error: value of type 'URLSession' has no member 'bytes'
39 | urlSession: URLSession
40 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
41 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
42 |
43 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | ) {
19 | self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: value of type '_' expected to be instance of class or class-constrained type
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
18 | ) {
19 | self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | public var headers: [String: String]
8 | public var queryParams: [String: String]
9 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public init(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | ) {
19 | self.name = name
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'AnyObject'
7 | public var headers: [String: String]
8 | public var queryParams: [String: String]
9 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'AnyObject'
10 |
11 | public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:38:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
36 | headers: headers,
37 | queryParams: queryParams,
38 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
39 | providerName: name
40 | )
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:49:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
47 | baseURL: baseURL,
48 | headers: headers,
49 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
50 | providerName: name
51 | )
[36/136] Compiling AI OllamaModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/GoogleModel.swift:41:54: error: value of type 'URLSession' has no member 'bytes'
39 | urlSession: URLSession
40 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
41 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
42 |
43 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | ) {
19 | self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: value of type '_' expected to be instance of class or class-constrained type
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
18 | ) {
19 | self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | public var headers: [String: String]
8 | public var queryParams: [String: String]
9 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public init(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | ) {
19 | self.name = name
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'AnyObject'
7 | public var headers: [String: String]
8 | public var queryParams: [String: String]
9 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'AnyObject'
10 |
11 | public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:38:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
36 | headers: headers,
37 | queryParams: queryParams,
38 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
39 | providerName: name
40 | )
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:49:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
47 | baseURL: baseURL,
48 | headers: headers,
49 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
50 | providerName: name
51 | )
[37/136] Compiling AI OpenAICompatibleModelSupport.swift
/host/spi-builder-workspace/Sources/AI/Providers/GoogleModel.swift:41:54: error: value of type 'URLSession' has no member 'bytes'
39 | urlSession: URLSession
40 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
41 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
42 |
43 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | ) {
19 | self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: value of type '_' expected to be instance of class or class-constrained type
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
18 | ) {
19 | self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | public var headers: [String: String]
8 | public var queryParams: [String: String]
9 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public init(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | ) {
19 | self.name = name
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'AnyObject'
7 | public var headers: [String: String]
8 | public var queryParams: [String: String]
9 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'AnyObject'
10 |
11 | public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:38:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
36 | headers: headers,
37 | queryParams: queryParams,
38 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
39 | providerName: name
40 | )
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:49:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
47 | baseURL: baseURL,
48 | headers: headers,
49 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
50 | providerName: name
51 | )
[38/136] Compiling AI OpenAICompatibleProvider.swift
/host/spi-builder-workspace/Sources/AI/Providers/GoogleModel.swift:41:54: error: value of type 'URLSession' has no member 'bytes'
39 | urlSession: URLSession
40 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
41 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
42 |
43 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | ) {
19 | self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: value of type '_' expected to be instance of class or class-constrained type
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
18 | ) {
19 | self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | public var headers: [String: String]
8 | public var queryParams: [String: String]
9 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public init(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | ) {
19 | self.name = name
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'AnyObject'
7 | public var headers: [String: String]
8 | public var queryParams: [String: String]
9 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'AnyObject'
10 |
11 | public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:38:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
36 | headers: headers,
37 | queryParams: queryParams,
38 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
39 | providerName: name
40 | )
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:49:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
47 | baseURL: baseURL,
48 | headers: headers,
49 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
50 | providerName: name
51 | )
[39/136] Compiling AI RemoteContent.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[40/136] Compiling AI Reranking.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[41/136] Compiling AI Retry.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[42/136] Compiling AI RuntimeContext.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[43/136] Compiling AI Schema.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[44/136] Compiling AI SpeechGeneration.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[45/136] Compiling AI StepControl.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[46/136] Compiling AI StepRequest.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[47/136] Compiling AI StreamSmoothing.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[48/136] Compiling AI StreamText.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[49/136] Compiling AI StreamTranscription.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[50/136] Compiling AI Telemetry.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[51/136] Compiling AI Timeouts.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[52/136] Compiling AI Tool.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[53/136] Compiling AI ToolApproval.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[54/136] Compiling AI OpenAIEmbeddingModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:176:61: error: value of type 'URLSession' has no member 'bytes'
174 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
175 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
176 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
177 |
178 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[55/136] Compiling AI OpenAIImageModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:176:61: error: value of type 'URLSession' has no member 'bytes'
174 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
175 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
176 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
177 |
178 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[56/136] Compiling AI OpenAIModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:176:61: error: value of type 'URLSession' has no member 'bytes'
174 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
175 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
176 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
177 |
178 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[57/136] Compiling AI OpenAIPlatformClients.swift
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:176:61: error: value of type 'URLSession' has no member 'bytes'
174 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
175 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
176 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
177 |
178 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[58/136] Compiling AI OpenAIResponsesClient.swift
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:176:61: error: value of type 'URLSession' has no member 'bytes'
174 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
175 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
176 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
177 |
178 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[59/136] Compiling AI OpenAIResponsesModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:176:61: error: value of type 'URLSession' has no member 'bytes'
174 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
175 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
176 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
177 |
178 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[60/136] Compiling AI OpenAISpeechModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:176:61: error: value of type 'URLSession' has no member 'bytes'
174 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
175 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
176 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
177 |
178 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[61/136] Compiling AI OpenAITranscriptionModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:176:61: error: value of type 'URLSession' has no member 'bytes'
174 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
175 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
176 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
177 |
178 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[62/136] Compiling AI OpenRouterModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:176:61: error: value of type 'URLSession' has no member 'bytes'
174 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
175 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
176 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
177 |
178 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[63/136] Compiling AI PerplexityModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:176:61: error: value of type 'URLSession' has no member 'bytes'
174 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
175 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
176 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
177 |
178 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[64/136] Compiling AI ProdiaModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:176:61: error: value of type 'URLSession' has no member 'bytes'
174 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
175 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
176 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
177 |
178 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[65/136] Compiling AI SarvamModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:176:61: error: value of type 'URLSession' has no member 'bytes'
174 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
175 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
176 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
177 |
178 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[66/136] Compiling AI SpeechProviderPacks.swift
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:176:61: error: value of type 'URLSession' has no member 'bytes'
174 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
175 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
176 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
177 |
178 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[67/136] Compiling AI TogetherAIModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:176:61: error: value of type 'URLSession' has no member 'bytes'
174 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
175 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
176 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
177 |
178 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[68/136] Compiling AI TranscriptionProviderPacks.swift
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:176:61: error: value of type 'URLSession' has no member 'bytes'
174 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
175 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
176 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
177 |
178 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[69/136] Compiling AI BlackForestLabsModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[70/136] Compiling AI ByteDanceModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[71/136] Compiling AI CartesiaModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[72/136] Compiling AI CerebrasModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[73/136] Compiling AI CohereModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[74/136] Compiling AI CohereRerankingModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[75/136] Compiling AI DeepInfraModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[76/136] Compiling AI DeepSeekModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[77/136] Compiling AI DeepgramStreamingTranscription.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[78/136] Compiling AI ElevenLabsModels.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[79/136] Compiling AI FileUploads.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[80/136] Compiling AI FireworksModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[81/136] Compiling AI FoundationModelsModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[82/136] Compiling AI GoogleEmbeddingModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[83/136] Compiling AI GoogleInteractionsModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[84/136] Compiling AI AIError.swift
[85/136] Compiling AI Agent.swift
[86/136] Compiling AI Compaction.swift
[87/136] Compiling AI Embeddings.swift
[88/136] Compiling AI GenerateObject.swift
[89/136] Compiling AI GenerateText.swift
[90/136] Compiling AI ImageGeneration.swift
[91/136] Compiling AI LanguageModel.swift
[92/136] Compiling AI Message.swift
[93/136] Compiling AI Middleware.swift
[94/136] Compiling AI ModelContextWindows.swift
[95/136] Compiling AI ModelMiddleware.swift
[96/136] Compiling AI ProviderDefinedTool.swift
[97/136] Compiling AI ProviderRegistry.swift
[98/136] Compiling AI PruneMessages.swift
[99/136] Compiling AI HTTPChatTransport.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[100/136] Compiling AI LocalChatTransport.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[101/136] Compiling AI StreamBridge.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[102/136] Compiling AI TextStreamChatTransport.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[103/136] Compiling AI UIMessage.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[104/136] Compiling AI UIMessageChunk.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[105/136] Compiling AI UIMessageReducer.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[106/136] Compiling AI UIMessageStreamBuilder.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[107/136] Compiling AI ChatSession.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[108/136] Compiling AI CompletionSession.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[109/136] Compiling AI ObjectSession.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[110/136] Compiling AI JSONValue.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[111/136] Compiling AI MultipartForm.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[112/136] Compiling AI PartialJSON.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[113/136] Compiling AI ResponseURL.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[114/136] Compiling AI VercelModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[115/136] Compiling AI VoyageModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[116/136] Compiling AI XaiImageModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[117/136] Compiling AI XaiModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[118/136] Compiling AI XaiPlatformClients.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[119/136] Compiling AI XaiVideoModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[120/136] Compiling AI AudioResampling.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[121/136] Compiling AI GoogleRealtimeModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[122/136] Compiling AI OpenAIRealtimeModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[123/136] Compiling AI RealtimeModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[124/136] Compiling AI RealtimeSession.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[125/136] Compiling AI XaiRealtimeModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[126/136] Compiling AI AWSEventStream.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[127/136] Compiling AI SSE.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[128/136] Compiling AI ChatTransport.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
BUILD FAILURE 6.3 android