The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-ai-sdk, reference 0.3.0 (d8d108), with Swift 6.3 for Linux on 13 Aug 2026 01:21:10 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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

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 = ""
[73/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 = ""
[74/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 = ""
[75/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 = ""
[76/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 = ""
[77/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 = ""
[78/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 = ""
[79/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 = ""
[80/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 = ""
[81/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 = ""
[82/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 = ""
[83/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 = ""
[84/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)
[85/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)
[86/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)
[87/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)
[88/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)
[89/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)
[90/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)
[91/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)
[92/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)
[93/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)
[94/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)
[95/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)
[96/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)
[97/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)
[98/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)
[99/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) {
[100/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) {
[101/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) {
[102/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) {
[103/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) {
[104/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) {
[105/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) {
[106/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) {
[107/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) {
[108/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) {
[109/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) {
[110/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) {
[111/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) {
[112/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) {
[113/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) {
[114/136] Compiling AI GoogleMediaModels.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 |         )
[115/136] Compiling AI GoogleModel.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 |         )
[116/136] Compiling AI GooglePlatformClients.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 |         )
[117/136] Compiling AI GoogleVertexModel.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 |         )
[118/136] Compiling AI GroqModel.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 |         )
[119/136] Compiling AI HuggingFaceModel.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 |         )
[120/136] Compiling AI KlingVideoModel.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 |         )
[121/136] Compiling AI LMStudioModel.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 |         )
[122/136] Compiling AI MediaGenerationPacks.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 |         )
[123/136] Compiling AI MetaModel.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 |         )
[124/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 |         )
[125/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 |         )
[126/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 |         )
[127/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 |         )
[128/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 |         )
BUILD FAILURE 6.3 linux