Build Information
Failed to build swift-ai-sdk, reference main (d8d108), with Swift 6.4 for Wasm on 26 Sep 2026 21:04:15 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/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:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1Build Log
[0;36m325 |[0;0m ) {
[0;36m326 |[0;0m self.http = OpenAIHTTP(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:375:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m373 |[0;0m baseURL: URL = URL(string: "https://api.openai.com/v1")!,
[0;36m374 |[0;0m headers: [String: String] = [:],
[0;36m375 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m376 |[0;0m ) {
[0;36m377 |[0;0m self.http = OpenAIHTTP(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:375:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m373 |[0;0m baseURL: URL = URL(string: "https://api.openai.com/v1")!,
[0;36m374 |[0;0m headers: [String: String] = [:],
[0;36m375 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m376 |[0;0m ) {
[0;36m377 |[0;0m self.http = OpenAIHTTP(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:375:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m373 |[0;0m baseURL: URL = URL(string: "https://api.openai.com/v1")!,
[0;36m374 |[0;0m headers: [String: String] = [:],
[0;36m375 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m376 |[0;0m ) {
[0;36m377 |[0;0m self.http = OpenAIHTTP(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:431:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m429 |[0;0m pollTimeout: Duration = .seconds(900),
[0;36m430 |[0;0m headers: [String: String] = [:],
[0;36m431 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m432 |[0;0m ) {
[0;36m433 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:431:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m429 |[0;0m pollTimeout: Duration = .seconds(900),
[0;36m430 |[0;0m headers: [String: String] = [:],
[0;36m431 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m432 |[0;0m ) {
[0;36m433 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:431:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m429 |[0;0m pollTimeout: Duration = .seconds(900),
[0;36m430 |[0;0m headers: [String: String] = [:],
[0;36m431 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m432 |[0;0m ) {
[0;36m433 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesClient.swift:10:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m8 |[0;0m private let baseURL: URL
[0;36m9 |[0;0m private let headers: [String: String]
[0;36m10 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m
[0;36m12 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesClient.swift:16:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m baseURL: URL = URL(string: "https://api.openai.com/v1")!,
[0;36m15 |[0;0m headers: [String: String] = [:],
[0;36m16 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m17 |[0;0m ) {
[0;36m18 |[0;0m self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["OPENAI_API_KEY"] ?? ""
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesClient.swift:16:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m14 |[0;0m baseURL: URL = URL(string: "https://api.openai.com/v1")!,
[0;36m15 |[0;0m headers: [String: String] = [:],
[0;36m16 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m17 |[0;0m ) {
[0;36m18 |[0;0m self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["OPENAI_API_KEY"] ?? ""
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesClient.swift:16:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m14 |[0;0m baseURL: URL = URL(string: "https://api.openai.com/v1")!,
[0;36m15 |[0;0m headers: [String: String] = [:],
[0;36m16 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m17 |[0;0m ) {
[0;36m18 |[0;0m self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["OPENAI_API_KEY"] ?? ""
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesClient.swift:10:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'OpenAIResponsesClient' has non-Sendable type 'AnyObject'[0;0m
[0;36m8 |[0;0m private let baseURL: URL
[0;36m9 |[0;0m private let headers: [String: String]
[0;36m10 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'OpenAIResponsesClient' has non-Sendable type 'AnyObject'[0;0m
[0;36m11 |[0;0m
[0;36m12 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:39:25: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m37 |[0;0m var baseURL: URL
[0;36m38 |[0;0m var headers: [String: String]
[0;36m39 |[0;0m var urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m40 |[0;0m var multiAgent: MultiAgent? = nil
[0;36m41 |[0;0m var dialect: ResponsesDialect = .openai
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:39:13: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'ResponsesConfig' has non-Sendable type 'AnyObject'[0;0m
[0;36m37 |[0;0m var baseURL: URL
[0;36m38 |[0;0m var headers: [String: String]
[0;36m39 |[0;0m var urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'ResponsesConfig' has non-Sendable type 'AnyObject'[0;0m
[0;36m40 |[0;0m var multiAgent: MultiAgent? = nil
[0;36m41 |[0;0m var dialect: ResponsesDialect = .openai
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:68:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m66 |[0;0m multiAgent: MultiAgent? = nil,
[0;36m67 |[0;0m headers: [String: String] = [:],
[0;36m68 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m69 |[0;0m ) {
[0;36m70 |[0;0m self.init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:68:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m66 |[0;0m multiAgent: MultiAgent? = nil,
[0;36m67 |[0;0m headers: [String: String] = [:],
[0;36m68 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m69 |[0;0m ) {
[0;36m70 |[0;0m self.init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:68:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m66 |[0;0m multiAgent: MultiAgent? = nil,
[0;36m67 |[0;0m headers: [String: String] = [:],
[0;36m68 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m69 |[0;0m ) {
[0;36m70 |[0;0m self.init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:89:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m87 |[0;0m multiAgent: MultiAgent? = nil,
[0;36m88 |[0;0m headers: [String: String],
[0;36m89 |[0;0m urlSession: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m90 |[0;0m providerName: String,
[0;36m91 |[0;0m dialect: ResponsesDialect = .openai
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:112:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m110 |[0;0m project: String? = nil,
[0;36m111 |[0;0m headers: [String: String] = [:],
[0;36m112 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m113 |[0;0m ) -> OpenAIModel {
[0;36m114 |[0;0m OpenAIModel(modelID: modelID, chatEngine: OpenAIChatModel(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:112:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m110 |[0;0m project: String? = nil,
[0;36m111 |[0;0m headers: [String: String] = [:],
[0;36m112 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m113 |[0;0m ) -> OpenAIModel {
[0;36m114 |[0;0m OpenAIModel(modelID: modelID, chatEngine: OpenAIChatModel(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:112:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m110 |[0;0m project: String? = nil,
[0;36m111 |[0;0m headers: [String: String] = [:],
[0;36m112 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m113 |[0;0m ) -> OpenAIModel {
[0;36m114 |[0;0m OpenAIModel(modelID: modelID, chatEngine: OpenAIChatModel(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:459:17: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m457 |[0;0m modelID: String,
[0;36m458 |[0;0m request: LanguageModelRequest
[0;36m459 |[0;0m ) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m460 |[0;0m var urlRequest = URLRequest(url: config.baseURL.appendingPathComponent("responses"))
[0;36m461 |[0;0m urlRequest.httpMethod = "POST"
/host/spi-builder-workspace/Sources/AI/Providers/OpenAISpeechModel.swift:13:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/OpenAISpeechModel.swift:20:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.openai.com/v1")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/OpenAISpeechModel.swift:20:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.openai.com/v1")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAISpeechModel.swift:20:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.openai.com/v1")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAISpeechModel.swift:37:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m35 |[0;0m baseURL: URL,
[0;36m36 |[0;0m headers: [String: String],
[0;36m37 |[0;0m urlSession: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m38 |[0;0m providerName: String
[0;36m39 |[0;0m ) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/OpenAISpeechModel.swift:58:67: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m56 |[0;0m }
[0;36m57 |[0;0m
[0;36m58 |[0;0m func buildURLRequest(_ request: SpeechModelRequest) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m59 |[0;0m var body: [String: JSONValue] = [
[0;36m60 |[0;0m "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/OpenAISpeechModel.swift:13:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'OpenAISpeechModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'OpenAISpeechModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAITranscriptionModel.swift:13:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/OpenAITranscriptionModel.swift:20:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.openai.com/v1")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/OpenAITranscriptionModel.swift:20:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.openai.com/v1")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAITranscriptionModel.swift:20:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.openai.com/v1")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAITranscriptionModel.swift:37:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m35 |[0;0m baseURL: URL,
[0;36m36 |[0;0m headers: [String: String],
[0;36m37 |[0;0m urlSession: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m38 |[0;0m providerName: String
[0;36m39 |[0;0m ) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/OpenAITranscriptionModel.swift:69:74: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m67 |[0;0m }
[0;36m68 |[0;0m
[0;36m69 |[0;0m func buildURLRequest(_ request: TranscriptionModelRequest) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m70 |[0;0m let boundary = "swift-ai-sdk-\(UUID().uuidString)"
[0;36m71 |[0;0m var body = Data()
/host/spi-builder-workspace/Sources/AI/Providers/OpenAITranscriptionModel.swift:13:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'OpenAITranscriptionModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'OpenAITranscriptionModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenRouterModel.swift:19:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m17 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m18 |[0;0m headers: [String: String] = [:], queryParams: [String: String] = [:],
[0;36m19 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m20 |[0;0m ) {
[0;36m21 |[0;0m engine = openRouterConfiguration.makeModel(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/OpenRouterModel.swift:19:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m17 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m18 |[0;0m headers: [String: String] = [:], queryParams: [String: String] = [:],
[0;36m19 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m20 |[0;0m ) {
[0;36m21 |[0;0m engine = openRouterConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/OpenRouterModel.swift:19:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m17 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m18 |[0;0m headers: [String: String] = [:], queryParams: [String: String] = [:],
[0;36m19 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m20 |[0;0m ) {
[0;36m21 |[0;0m engine = openRouterConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/PerplexityModel.swift:19:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m17 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m18 |[0;0m headers: [String: String] = [:], queryParams: [String: String] = [:],
[0;36m19 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m20 |[0;0m ) {
[0;36m21 |[0;0m engine = perplexityConfiguration.makeModel(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/PerplexityModel.swift:19:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m17 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m18 |[0;0m headers: [String: String] = [:], queryParams: [String: String] = [:],
[0;36m19 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m20 |[0;0m ) {
[0;36m21 |[0;0m engine = perplexityConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/PerplexityModel.swift:19:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m17 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m18 |[0;0m headers: [String: String] = [:], queryParams: [String: String] = [:],
[0;36m19 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m20 |[0;0m ) {
[0;36m21 |[0;0m engine = perplexityConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:14:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m12 |[0;0m private let accept: String
[0;36m13 |[0;0m private let headers: [String: String]
[0;36m14 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m15 |[0;0m
[0;36m16 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:22:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m20 |[0;0m baseURL: URL = URL(string: "https://inference.prodia.com/v2")!,
[0;36m21 |[0;0m headers: [String: String] = [:],
[0;36m22 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m23 |[0;0m ) {
[0;36m24 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:22:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m20 |[0;0m baseURL: URL = URL(string: "https://inference.prodia.com/v2")!,
[0;36m21 |[0;0m headers: [String: String] = [:],
[0;36m22 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m23 |[0;0m ) {
[0;36m24 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:22:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m20 |[0;0m baseURL: URL = URL(string: "https://inference.prodia.com/v2")!,
[0;36m21 |[0;0m headers: [String: String] = [:],
[0;36m22 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m23 |[0;0m ) {
[0;36m24 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:44:66: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m42 |[0;0m }
[0;36m43 |[0;0m
[0;36m44 |[0;0m func buildURLRequest(_ request: ImageModelRequest) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m45 |[0;0m var config: [String: JSONValue] = ["prompt": .string(request.prompt)]
[0;36m46 |[0;0m if let seed = request.seed { config["seed"] = .number(Double(seed)) }
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:14:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'ProdiaImageModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m12 |[0;0m private let accept: String
[0;36m13 |[0;0m private let headers: [String: String]
[0;36m14 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'ProdiaImageModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m15 |[0;0m
[0;36m16 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:73:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m71 |[0;0m private let baseURL: URL
[0;36m72 |[0;0m private let headers: [String: String]
[0;36m73 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m74 |[0;0m
[0;36m75 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:80:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m78 |[0;0m baseURL: URL = URL(string: "https://api.quiver.ai/v1")!,
[0;36m79 |[0;0m headers: [String: String] = [:],
[0;36m80 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m81 |[0;0m ) {
[0;36m82 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:80:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m78 |[0;0m baseURL: URL = URL(string: "https://api.quiver.ai/v1")!,
[0;36m79 |[0;0m headers: [String: String] = [:],
[0;36m80 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m81 |[0;0m ) {
[0;36m82 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:80:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m78 |[0;0m baseURL: URL = URL(string: "https://api.quiver.ai/v1")!,
[0;36m79 |[0;0m headers: [String: String] = [:],
[0;36m80 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m81 |[0;0m ) {
[0;36m82 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:108:66: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m106 |[0;0m }
[0;36m107 |[0;0m
[0;36m108 |[0;0m func buildURLRequest(_ request: ImageModelRequest) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m109 |[0;0m var body: [String: JSONValue] = [
[0;36m110 |[0;0m "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:73:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'QuiverAIImageModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m71 |[0;0m private let baseURL: URL
[0;36m72 |[0;0m private let headers: [String: String]
[0;36m73 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'QuiverAIImageModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m74 |[0;0m
[0;36m75 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Providers/SarvamModel.swift:19:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m17 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m18 |[0;0m headers: [String: String] = [:], queryParams: [String: String] = [:],
[0;36m19 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m20 |[0;0m ) {
[0;36m21 |[0;0m engine = sarvamConfiguration.makeModel(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/SarvamModel.swift:19:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m17 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m18 |[0;0m headers: [String: String] = [:], queryParams: [String: String] = [:],
[0;36m19 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m20 |[0;0m ) {
[0;36m21 |[0;0m engine = sarvamConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/SarvamModel.swift:19:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m17 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m18 |[0;0m headers: [String: String] = [:], queryParams: [String: String] = [:],
[0;36m19 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m20 |[0;0m ) {
[0;36m21 |[0;0m engine = sarvamConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:13:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:20:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.lmnt.com")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:20:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.lmnt.com")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:20:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.lmnt.com")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:41:67: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m39 |[0;0m }
[0;36m40 |[0;0m
[0;36m41 |[0;0m func buildURLRequest(_ request: SpeechModelRequest) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m42 |[0;0m var body: [String: JSONValue] = [
[0;36m43 |[0;0m "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:13:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'LMNTSpeechModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'LMNTSpeechModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:71:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m69 |[0;0m private let targetLanguage: String
[0;36m70 |[0;0m private let headers: [String: String]
[0;36m71 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m72 |[0;0m
[0;36m73 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:79:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m77 |[0;0m baseURL: URL = URL(string: "https://api.sarvam.ai")!,
[0;36m78 |[0;0m headers: [String: String] = [:],
[0;36m79 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m80 |[0;0m ) {
[0;36m81 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:79:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m77 |[0;0m baseURL: URL = URL(string: "https://api.sarvam.ai")!,
[0;36m78 |[0;0m headers: [String: String] = [:],
[0;36m79 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m80 |[0;0m ) {
[0;36m81 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:79:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m77 |[0;0m baseURL: URL = URL(string: "https://api.sarvam.ai")!,
[0;36m78 |[0;0m headers: [String: String] = [:],
[0;36m79 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m80 |[0;0m ) {
[0;36m81 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:115:67: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m113 |[0;0m }
[0;36m114 |[0;0m
[0;36m115 |[0;0m func buildURLRequest(_ request: SpeechModelRequest) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m116 |[0;0m var body: [String: JSONValue] = [
[0;36m117 |[0;0m "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:71:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'SarvamSpeechModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m69 |[0;0m private let targetLanguage: String
[0;36m70 |[0;0m private let headers: [String: String]
[0;36m71 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'SarvamSpeechModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m72 |[0;0m
[0;36m73 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:148:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m146 |[0;0m private let language: String
[0;36m147 |[0;0m private let headers: [String: String]
[0;36m148 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m149 |[0;0m
[0;36m150 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:156:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m154 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m155 |[0;0m headers: [String: String] = [:],
[0;36m156 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m157 |[0;0m ) {
[0;36m158 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:156:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m154 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m155 |[0;0m headers: [String: String] = [:],
[0;36m156 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m157 |[0;0m ) {
[0;36m158 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:156:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m154 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m155 |[0;0m headers: [String: String] = [:],
[0;36m156 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m157 |[0;0m ) {
[0;36m158 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:186:67: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m184 |[0;0m }
[0;36m185 |[0;0m
[0;36m186 |[0;0m func buildURLRequest(_ request: SpeechModelRequest) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m187 |[0;0m var body: [String: JSONValue] = [
[0;36m188 |[0;0m "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:148:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'XaiSpeechModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m146 |[0;0m private let language: String
[0;36m147 |[0;0m private let headers: [String: String]
[0;36m148 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'XaiSpeechModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m149 |[0;0m
[0;36m150 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:219:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m217 |[0;0m private let baseURL: URL
[0;36m218 |[0;0m private let headers: [String: String]
[0;36m219 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m220 |[0;0m
[0;36m221 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:226:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m224 |[0;0m baseURL: URL = URL(string: "https://api.hume.ai")!,
[0;36m225 |[0;0m headers: [String: String] = [:],
[0;36m226 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m227 |[0;0m ) {
[0;36m228 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:226:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m224 |[0;0m baseURL: URL = URL(string: "https://api.hume.ai")!,
[0;36m225 |[0;0m headers: [String: String] = [:],
[0;36m226 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m227 |[0;0m ) {
[0;36m228 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:226:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m224 |[0;0m baseURL: URL = URL(string: "https://api.hume.ai")!,
[0;36m225 |[0;0m headers: [String: String] = [:],
[0;36m226 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m227 |[0;0m ) {
[0;36m228 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:247:67: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m245 |[0;0m }
[0;36m246 |[0;0m
[0;36m247 |[0;0m func buildURLRequest(_ request: SpeechModelRequest) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m248 |[0;0m var utterance: [String: JSONValue] = ["text": .string(request.text)]
[0;36m249 |[0;0m if let voice = request.voice {
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:219:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'HumeSpeechModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m217 |[0;0m private let baseURL: URL
[0;36m218 |[0;0m private let headers: [String: String]
[0;36m219 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'HumeSpeechModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m220 |[0;0m
[0;36m221 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:282:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m280 |[0;0m private let baseURL: URL
[0;36m281 |[0;0m private let headers: [String: String]
[0;36m282 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m283 |[0;0m
[0;36m284 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:289:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m287 |[0;0m baseURL: URL = URL(string: "https://api.deepgram.com")!,
[0;36m288 |[0;0m headers: [String: String] = [:],
[0;36m289 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m290 |[0;0m ) {
[0;36m291 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:289:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m287 |[0;0m baseURL: URL = URL(string: "https://api.deepgram.com")!,
[0;36m288 |[0;0m headers: [String: String] = [:],
[0;36m289 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m290 |[0;0m ) {
[0;36m291 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:289:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m287 |[0;0m baseURL: URL = URL(string: "https://api.deepgram.com")!,
[0;36m288 |[0;0m headers: [String: String] = [:],
[0;36m289 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m290 |[0;0m ) {
[0;36m291 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:306:67: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m304 |[0;0m }
[0;36m305 |[0;0m
[0;36m306 |[0;0m func buildURLRequest(_ request: SpeechModelRequest) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m307 |[0;0m var components = URLComponents(
[0;36m308 |[0;0m url: baseURL.appendingPathComponent("v1/speak"), resolvingAgainstBaseURL: false
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:282:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'DeepgramSpeechModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m280 |[0;0m private let baseURL: URL
[0;36m281 |[0;0m private let headers: [String: String]
[0;36m282 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'DeepgramSpeechModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m283 |[0;0m
[0;36m284 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Providers/TogetherAIModel.swift:19:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m17 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m18 |[0;0m headers: [String: String] = [:], queryParams: [String: String] = [:],
[0;36m19 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m20 |[0;0m ) {
[0;36m21 |[0;0m engine = togetherAIConfiguration.makeModel(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/TogetherAIModel.swift:19:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m17 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m18 |[0;0m headers: [String: String] = [:], queryParams: [String: String] = [:],
[0;36m19 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m20 |[0;0m ) {
[0;36m21 |[0;0m engine = togetherAIConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/TogetherAIModel.swift:19:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m17 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m18 |[0;0m headers: [String: String] = [:], queryParams: [String: String] = [:],
[0;36m19 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m20 |[0;0m ) {
[0;36m21 |[0;0m engine = togetherAIConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/TogetherAIModel.swift:33:54: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m31 |[0;0m public init(
[0;36m32 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m33 |[0;0m headers: [String: String] = [:], urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m34 |[0;0m ) {
[0;36m35 |[0;0m engine = togetherAIConfiguration.makeEmbeddingModel(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/TogetherAIModel.swift:33:68: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m31 |[0;0m public init(
[0;36m32 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m33 |[0;0m headers: [String: String] = [:], urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m34 |[0;0m ) {
[0;36m35 |[0;0m engine = togetherAIConfiguration.makeEmbeddingModel(
/host/spi-builder-workspace/Sources/AI/Providers/TogetherAIModel.swift:33:68: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m31 |[0;0m public init(
[0;36m32 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m33 |[0;0m headers: [String: String] = [:], urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m34 |[0;0m ) {
[0;36m35 |[0;0m engine = togetherAIConfiguration.makeEmbeddingModel(
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:18:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m16 |[0;0m let baseURL: URL
[0;36m17 |[0;0m let headers: [String: String]
[0;36m18 |[0;0m let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m19 |[0;0m
[0;36m20 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:25:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m23 |[0;0m baseURL: URL = URL(string: "https://api.deepgram.com")!,
[0;36m24 |[0;0m headers: [String: String] = [:],
[0;36m25 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m26 |[0;0m ) {
[0;36m27 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:25:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m23 |[0;0m baseURL: URL = URL(string: "https://api.deepgram.com")!,
[0;36m24 |[0;0m headers: [String: String] = [:],
[0;36m25 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m26 |[0;0m ) {
[0;36m27 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:25:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m23 |[0;0m baseURL: URL = URL(string: "https://api.deepgram.com")!,
[0;36m24 |[0;0m headers: [String: String] = [:],
[0;36m25 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m26 |[0;0m ) {
[0;36m27 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:58:67: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m56 |[0;0m }
[0;36m57 |[0;0m
[0;36m58 |[0;0m func buildURLRequest(_ request: TranscriptionModelRequest) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m59 |[0;0m var components = URLComponents(
[0;36m60 |[0;0m url: baseURL.appendingPathComponent("v1/listen"), resolvingAgainstBaseURL: false
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:18:9: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'DeepgramTranscriptionModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m16 |[0;0m let baseURL: URL
[0;36m17 |[0;0m let headers: [String: String]
[0;36m18 |[0;0m let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'DeepgramTranscriptionModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m19 |[0;0m
[0;36m20 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:84:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m82 |[0;0m private let baseURL: URL
[0;36m83 |[0;0m private let headers: [String: String]
[0;36m84 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m85 |[0;0m
[0;36m86 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:91:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m89 |[0;0m baseURL: URL = URL(string: "https://api.sarvam.ai")!,
[0;36m90 |[0;0m headers: [String: String] = [:],
[0;36m91 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m92 |[0;0m ) {
[0;36m93 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:91:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m89 |[0;0m baseURL: URL = URL(string: "https://api.sarvam.ai")!,
[0;36m90 |[0;0m headers: [String: String] = [:],
[0;36m91 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m92 |[0;0m ) {
[0;36m93 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:91:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m89 |[0;0m baseURL: URL = URL(string: "https://api.sarvam.ai")!,
[0;36m90 |[0;0m headers: [String: String] = [:],
[0;36m91 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m92 |[0;0m ) {
[0;36m93 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:112:67: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m110 |[0;0m }
[0;36m111 |[0;0m
[0;36m112 |[0;0m func buildURLRequest(_ request: TranscriptionModelRequest) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m113 |[0;0m var form = MultipartForm(boundary: "swift-ai-sdk-sarvam")
[0;36m114 |[0;0m form.addField(name: "model", value: modelID)
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:84:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'SarvamTranscriptionModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m82 |[0;0m private let baseURL: URL
[0;36m83 |[0;0m private let headers: [String: String]
[0;36m84 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'SarvamTranscriptionModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m85 |[0;0m
[0;36m86 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:157:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m155 |[0;0m private let baseURL: URL
[0;36m156 |[0;0m private let headers: [String: String]
[0;36m157 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m158 |[0;0m
[0;36m159 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:164:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m162 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m163 |[0;0m headers: [String: String] = [:],
[0;36m164 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m165 |[0;0m ) {
[0;36m166 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:164:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m162 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m163 |[0;0m headers: [String: String] = [:],
[0;36m164 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m165 |[0;0m ) {
[0;36m166 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:164:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m162 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m163 |[0;0m headers: [String: String] = [:],
[0;36m164 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m165 |[0;0m ) {
[0;36m166 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:198:67: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m196 |[0;0m }
[0;36m197 |[0;0m
[0;36m198 |[0;0m func buildURLRequest(_ request: TranscriptionModelRequest) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m199 |[0;0m var form = MultipartForm(boundary: "swift-ai-sdk-xai-stt")
[0;36m200 |[0;0m form.addField(name: "model", value: modelID)
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:157:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'XaiTranscriptionModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m155 |[0;0m private let baseURL: URL
[0;36m156 |[0;0m private let headers: [String: String]
[0;36m157 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'XaiTranscriptionModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m158 |[0;0m
[0;36m159 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:238:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m236 |[0;0m private let baseURL: URL
[0;36m237 |[0;0m private let headers: [String: String]
[0;36m238 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m239 |[0;0m private let pollInterval: TimeInterval
[0;36m240 |[0;0m private let pollTimeout: TimeInterval
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:249:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m247 |[0;0m pollInterval: TimeInterval = 1,
[0;36m248 |[0;0m pollTimeout: TimeInterval = 300,
[0;36m249 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m250 |[0;0m ) {
[0;36m251 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:249:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m247 |[0;0m pollInterval: TimeInterval = 1,
[0;36m248 |[0;0m pollTimeout: TimeInterval = 300,
[0;36m249 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m250 |[0;0m ) {
[0;36m251 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:249:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m247 |[0;0m pollInterval: TimeInterval = 1,
[0;36m248 |[0;0m pollTimeout: TimeInterval = 300,
[0;36m249 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m250 |[0;0m ) {
[0;36m251 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:238:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'AssemblyAITranscriptionModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m236 |[0;0m private let baseURL: URL
[0;36m237 |[0;0m private let headers: [String: String]
[0;36m238 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'AssemblyAITranscriptionModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m239 |[0;0m private let pollInterval: TimeInterval
[0;36m240 |[0;0m private let pollTimeout: TimeInterval
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:340:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m338 |[0;0m private let baseURL: URL
[0;36m339 |[0;0m private let headers: [String: String]
[0;36m340 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m341 |[0;0m private let pollInterval: TimeInterval
[0;36m342 |[0;0m private let pollTimeout: TimeInterval
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:351:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m349 |[0;0m pollInterval: TimeInterval = 2,
[0;36m350 |[0;0m pollTimeout: TimeInterval = 600,
[0;36m351 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m352 |[0;0m ) {
[0;36m353 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:351:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m349 |[0;0m pollInterval: TimeInterval = 2,
[0;36m350 |[0;0m pollTimeout: TimeInterval = 600,
[0;36m351 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m352 |[0;0m ) {
[0;36m353 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:351:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m349 |[0;0m pollInterval: TimeInterval = 2,
[0;36m350 |[0;0m pollTimeout: TimeInterval = 600,
[0;36m351 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m352 |[0;0m ) {
[0;36m353 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:340:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'RevAITranscriptionModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m338 |[0;0m private let baseURL: URL
[0;36m339 |[0;0m private let headers: [String: String]
[0;36m340 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'RevAITranscriptionModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m341 |[0;0m private let pollInterval: TimeInterval
[0;36m342 |[0;0m private let pollTimeout: TimeInterval
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:445:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m443 |[0;0m private let baseURL: URL
[0;36m444 |[0;0m private let headers: [String: String]
[0;36m445 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m446 |[0;0m private let pollInterval: TimeInterval
[0;36m447 |[0;0m private let pollTimeout: TimeInterval
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:456:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m454 |[0;0m pollInterval: TimeInterval = 1,
[0;36m455 |[0;0m pollTimeout: TimeInterval = 300,
[0;36m456 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m457 |[0;0m ) {
[0;36m458 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:456:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m454 |[0;0m pollInterval: TimeInterval = 1,
[0;36m455 |[0;0m pollTimeout: TimeInterval = 300,
[0;36m456 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m457 |[0;0m ) {
[0;36m458 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:456:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m454 |[0;0m pollInterval: TimeInterval = 1,
[0;36m455 |[0;0m pollTimeout: TimeInterval = 300,
[0;36m456 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m457 |[0;0m ) {
[0;36m458 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:445:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'GladiaTranscriptionModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m443 |[0;0m private let baseURL: URL
[0;36m444 |[0;0m private let headers: [String: String]
[0;36m445 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'GladiaTranscriptionModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m446 |[0;0m private let pollInterval: TimeInterval
[0;36m447 |[0;0m private let pollTimeout: TimeInterval
/host/spi-builder-workspace/Sources/AI/Providers/VercelModel.swift:19:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m17 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m18 |[0;0m headers: [String: String] = [:], queryParams: [String: String] = [:],
[0;36m19 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m20 |[0;0m ) {
[0;36m21 |[0;0m engine = vercelConfiguration.makeModel(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/VercelModel.swift:19:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m17 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m18 |[0;0m headers: [String: String] = [:], queryParams: [String: String] = [:],
[0;36m19 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m20 |[0;0m ) {
[0;36m21 |[0;0m engine = vercelConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/VercelModel.swift:19:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m17 |[0;0m _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
[0;36m18 |[0;0m headers: [String: String] = [:], queryParams: [String: String] = [:],
[0;36m19 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m20 |[0;0m ) {
[0;36m21 |[0;0m engine = vercelConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:20:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m18 |[0;0m private let outputDimension: Int?
[0;36m19 |[0;0m private let headers: [String: String]
[0;36m20 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m21 |[0;0m
[0;36m22 |[0;0m static let maxTextsPerCall = 128
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:31:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m29 |[0;0m outputDimension: Int? = nil,
[0;36m30 |[0;0m headers: [String: String] = [:],
[0;36m31 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m32 |[0;0m ) {
[0;36m33 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:31:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m29 |[0;0m outputDimension: Int? = nil,
[0;36m30 |[0;0m headers: [String: String] = [:],
[0;36m31 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m32 |[0;0m ) {
[0;36m33 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:31:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m29 |[0;0m outputDimension: Int? = nil,
[0;36m30 |[0;0m headers: [String: String] = [:],
[0;36m31 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m32 |[0;0m ) {
[0;36m33 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:62:55: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m60 |[0;0m }
[0;36m61 |[0;0m
[0;36m62 |[0;0m func buildURLRequest(_ texts: [String]) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m63 |[0;0m var body: [String: JSONValue] = [
[0;36m64 |[0;0m "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:20:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'VoyageEmbeddingModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m18 |[0;0m private let outputDimension: Int?
[0;36m19 |[0;0m private let headers: [String: String]
[0;36m20 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'VoyageEmbeddingModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m21 |[0;0m
[0;36m22 |[0;0m static let maxTextsPerCall = 128
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:87:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m85 |[0;0m private let baseURL: URL
[0;36m86 |[0;0m private let headers: [String: String]
[0;36m87 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m88 |[0;0m
[0;36m89 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:94:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m92 |[0;0m baseURL: URL = URL(string: "https://api.voyageai.com/v1")!,
[0;36m93 |[0;0m headers: [String: String] = [:],
[0;36m94 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m95 |[0;0m ) {
[0;36m96 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:94:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m92 |[0;0m baseURL: URL = URL(string: "https://api.voyageai.com/v1")!,
[0;36m93 |[0;0m headers: [String: String] = [:],
[0;36m94 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m95 |[0;0m ) {
[0;36m96 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:94:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m92 |[0;0m baseURL: URL = URL(string: "https://api.voyageai.com/v1")!,
[0;36m93 |[0;0m headers: [String: String] = [:],
[0;36m94 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m95 |[0;0m ) {
[0;36m96 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:124:17: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m122 |[0;0m func buildURLRequest(
[0;36m123 |[0;0m query: String, documents: [String], topN: Int?
[0;36m124 |[0;0m ) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m125 |[0;0m var body: [String: JSONValue] = [
[0;36m126 |[0;0m "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:87:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'VoyageRerankingModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m85 |[0;0m private let baseURL: URL
[0;36m86 |[0;0m private let headers: [String: String]
[0;36m87 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'VoyageRerankingModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m88 |[0;0m
[0;36m89 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Providers/XaiImageModel.swift:13:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiImageModel.swift:20:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiImageModel.swift:20:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/XaiImageModel.swift:20:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/XaiImageModel.swift:52:66: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m50 |[0;0m }
[0;36m51 |[0;0m
[0;36m52 |[0;0m func buildURLRequest(_ request: ImageModelRequest) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m53 |[0;0m if !request.images.isEmpty {
[0;36m54 |[0;0m return try buildBody(request, path: "images/edits", includeInputImages: true)
/host/spi-builder-workspace/Sources/AI/Providers/XaiImageModel.swift:61:17: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m59 |[0;0m private func buildBody(
[0;36m60 |[0;0m _ request: ImageModelRequest, path: String, includeInputImages: Bool
[0;36m61 |[0;0m ) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m62 |[0;0m var body: [String: JSONValue] = [
[0;36m63 |[0;0m "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/XaiImageModel.swift:13:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'XaiImageModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'XaiImageModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:19:25: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m17 |[0;0m var baseURL: URL
[0;36m18 |[0;0m var headers: [String: String]
[0;36m19 |[0;0m var urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m20 |[0;0m }
[0;36m21 |[0;0m
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:19:13: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'ResponsesConfig' has non-Sendable type 'AnyObject'[0;0m
[0;36m17 |[0;0m var baseURL: URL
[0;36m18 |[0;0m var headers: [String: String]
[0;36m19 |[0;0m var urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'ResponsesConfig' has non-Sendable type 'AnyObject'[0;0m
[0;36m20 |[0;0m }
[0;36m21 |[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:29:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m27 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m28 |[0;0m headers: [String: String] = [:],
[0;36m29 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m30 |[0;0m ) {
[0;36m31 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:29:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m27 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m28 |[0;0m headers: [String: String] = [:],
[0;36m29 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m30 |[0;0m ) {
[0;36m31 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:29:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m27 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m28 |[0;0m headers: [String: String] = [:],
[0;36m29 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m30 |[0;0m ) {
[0;36m31 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:45:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m43 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m44 |[0;0m headers: [String: String] = [:],
[0;36m45 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m46 |[0;0m ) -> XaiModel {
[0;36m47 |[0;0m let key = apiKey ?? ProcessInfo.processInfo.environment["XAI_API_KEY"] ?? ""
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:45:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m43 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m44 |[0;0m headers: [String: String] = [:],
[0;36m45 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m46 |[0;0m ) -> XaiModel {
[0;36m47 |[0;0m let key = apiKey ?? ProcessInfo.processInfo.environment["XAI_API_KEY"] ?? ""
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:45:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m43 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m44 |[0;0m headers: [String: String] = [:],
[0;36m45 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m46 |[0;0m ) -> XaiModel {
[0;36m47 |[0;0m let key = apiKey ?? ProcessInfo.processInfo.environment["XAI_API_KEY"] ?? ""
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:530:17: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m528 |[0;0m modelID: String,
[0;36m529 |[0;0m request: LanguageModelRequest
[0;36m530 |[0;0m ) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m531 |[0;0m var urlRequest = URLRequest(url: config.baseURL.appendingPathComponent("responses"))
[0;36m532 |[0;0m urlRequest.httpMethod = "POST"
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:10:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m8 |[0;0m var baseURL: URL
[0;36m9 |[0;0m var headers: [String: String]
[0;36m10 |[0;0m var urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m
[0;36m12 |[0;0m init(apiKey: String?, baseURL: URL, headers: [String: String], urlSession: URLSession) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:12:80: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m10 |[0;0m var urlSession: URLSession
[0;36m11 |[0;0m
[0;36m12 |[0;0m init(apiKey: String?, baseURL: URL, headers: [String: String], urlSession: [4;39mURLSession[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m13 |[0;0m self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["XAI_API_KEY"] ?? ""
[0;36m14 |[0;0m self.baseURL = baseURL
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:19:45: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m17 |[0;0m }
[0;36m18 |[0;0m
[0;36m19 |[0;0m private func authorize(_ request: inout [4;39mURLRequest[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m20 |[0;0m if !apiKey.isEmpty {
[0;36m21 |[0;0m request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:75:35: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m73 |[0;0m }
[0;36m74 |[0;0m
[0;36m75 |[0;0m static func check(_ response: [4;39mURLResponse[0;0m, _ data: Data) throws {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m76 |[0;0m if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
[0;36m77 |[0;0m throw AIError.http(status: http.statusCode, body: String(decoding: data, as: UTF8.self))
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:10:9: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'XaiHTTP' has non-Sendable type 'AnyObject'[0;0m
[0;36m8 |[0;0m var baseURL: URL
[0;36m9 |[0;0m var headers: [String: String]
[0;36m10 |[0;0m var urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'XaiHTTP' has non-Sendable type 'AnyObject'[0;0m
[0;36m11 |[0;0m
[0;36m12 |[0;0m init(apiKey: String?, baseURL: URL, headers: [String: String], urlSession: URLSession) {
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:110:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m108 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m109 |[0;0m headers: [String: String] = [:],
[0;36m110 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m111 |[0;0m ) {
[0;36m112 |[0;0m self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:110:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m108 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m109 |[0;0m headers: [String: String] = [:],
[0;36m110 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m111 |[0;0m ) {
[0;36m112 |[0;0m self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:110:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m108 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m109 |[0;0m headers: [String: String] = [:],
[0;36m110 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m111 |[0;0m ) {
[0;36m112 |[0;0m self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:205:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m203 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m204 |[0;0m headers: [String: String] = [:],
[0;36m205 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m206 |[0;0m ) {
[0;36m207 |[0;0m self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:205:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m203 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m204 |[0;0m headers: [String: String] = [:],
[0;36m205 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m206 |[0;0m ) {
[0;36m207 |[0;0m self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:205:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m203 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m204 |[0;0m headers: [String: String] = [:],
[0;36m205 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m206 |[0;0m ) {
[0;36m207 |[0;0m self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:259:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m257 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m258 |[0;0m headers: [String: String] = [:],
[0;36m259 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m260 |[0;0m ) {
[0;36m261 |[0;0m self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:259:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m257 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m258 |[0;0m headers: [String: String] = [:],
[0;36m259 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m260 |[0;0m ) {
[0;36m261 |[0;0m self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:259:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m257 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m258 |[0;0m headers: [String: String] = [:],
[0;36m259 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m260 |[0;0m ) {
[0;36m261 |[0;0m self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:306:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m304 |[0;0m voiceBaseURL: URL = URL(string: "https://api.x.ai/v2")!,
[0;36m305 |[0;0m headers: [String: String] = [:],
[0;36m306 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m307 |[0;0m ) {
[0;36m308 |[0;0m self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:306:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m304 |[0;0m voiceBaseURL: URL = URL(string: "https://api.x.ai/v2")!,
[0;36m305 |[0;0m headers: [String: String] = [:],
[0;36m306 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m307 |[0;0m ) {
[0;36m308 |[0;0m self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:306:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m304 |[0;0m voiceBaseURL: URL = URL(string: "https://api.x.ai/v2")!,
[0;36m305 |[0;0m headers: [String: String] = [:],
[0;36m306 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m307 |[0;0m ) {
[0;36m308 |[0;0m self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:379:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m377 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m378 |[0;0m headers: [String: String] = [:],
[0;36m379 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m380 |[0;0m ) {
[0;36m381 |[0;0m let resolvedManagementKey = managementAPIKey
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:379:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m377 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m378 |[0;0m headers: [String: String] = [:],
[0;36m379 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m380 |[0;0m ) {
[0;36m381 |[0;0m let resolvedManagementKey = managementAPIKey
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:379:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m377 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m378 |[0;0m headers: [String: String] = [:],
[0;36m379 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m380 |[0;0m ) {
[0;36m381 |[0;0m let resolvedManagementKey = managementAPIKey
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:13:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m private let pollInterval: TimeInterval
[0;36m15 |[0;0m private let pollTimeout: TimeInterval
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:24:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m22 |[0;0m pollInterval: TimeInterval = 5,
[0;36m23 |[0;0m pollTimeout: TimeInterval = 600,
[0;36m24 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m25 |[0;0m ) {
[0;36m26 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:24:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m22 |[0;0m pollInterval: TimeInterval = 5,
[0;36m23 |[0;0m pollTimeout: TimeInterval = 600,
[0;36m24 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m25 |[0;0m ) {
[0;36m26 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:24:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m22 |[0;0m pollInterval: TimeInterval = 5,
[0;36m23 |[0;0m pollTimeout: TimeInterval = 600,
[0;36m24 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m25 |[0;0m ) {
[0;36m26 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:71:50: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m69 |[0;0m }
[0;36m70 |[0;0m
[0;36m71 |[0;0m private func submitAndAwait(_ createRequest: [4;39mURLRequest[0;0m) async throws -> VideoModelResponse {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m72 |[0;0m let (createData, createResponse) = try await urlSession.data(for: createRequest)
[0;36m73 |[0;0m if let http = createResponse as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:118:78: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m116 |[0;0m }
[0;36m117 |[0;0m
[0;36m118 |[0;0m func buildJSONRequest(path: String, body: [String: JSONValue]) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m119 |[0;0m var urlRequest = URLRequest(url: baseURL.appendingPathComponent(path))
[0;36m120 |[0;0m urlRequest.httpMethod = "POST"
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:154:69: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m152 |[0;0m }
[0;36m153 |[0;0m
[0;36m154 |[0;0m func buildCreateRequest(_ request: VideoModelRequest) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m155 |[0;0m var body: [String: JSONValue] = [
[0;36m156 |[0;0m "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:189:51: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m187 |[0;0m }
[0;36m188 |[0;0m
[0;36m189 |[0;0m func buildStatusRequest(requestID: String) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m190 |[0;0m var urlRequest = URLRequest(url: baseURL.appendingPathComponent("videos/\(requestID)"))
[0;36m191 |[0;0m urlRequest.httpMethod = "GET"
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:13:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'XaiVideoModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'XaiVideoModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m14 |[0;0m private let pollInterval: TimeInterval
[0;36m15 |[0;0m private let pollTimeout: TimeInterval
/host/spi-builder-workspace/Sources/AI/Realtime/GoogleRealtimeModel.swift:13:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m private let mapper = Mapper()
[0;36m15 |[0;0m
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Realtime/GoogleRealtimeModel.swift:21:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m19 |[0;0m baseURL: URL = URL(string: "https://generativelanguage.googleapis.com/v1beta")!,
[0;36m20 |[0;0m headers: [String: String] = [:],
[0;36m21 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m22 |[0;0m ) {
[0;36m23 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Realtime/GoogleRealtimeModel.swift:21:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m19 |[0;0m baseURL: URL = URL(string: "https://generativelanguage.googleapis.com/v1beta")!,
[0;36m20 |[0;0m headers: [String: String] = [:],
[0;36m21 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m22 |[0;0m ) {
[0;36m23 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Realtime/GoogleRealtimeModel.swift:21:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m19 |[0;0m baseURL: URL = URL(string: "https://generativelanguage.googleapis.com/v1beta")!,
[0;36m20 |[0;0m headers: [String: String] = [:],
[0;36m21 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m22 |[0;0m ) {
[0;36m23 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Realtime/GoogleRealtimeModel.swift:13:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'GoogleRealtimeModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'GoogleRealtimeModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m14 |[0;0m private let mapper = Mapper()
[0;36m15 |[0;0m
/host/spi-builder-workspace/Sources/AI/Realtime/OpenAIRealtimeModel.swift:13:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Realtime/OpenAIRealtimeModel.swift:20:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.openai.com/v1")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Realtime/OpenAIRealtimeModel.swift:20:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.openai.com/v1")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Realtime/OpenAIRealtimeModel.swift:20:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.openai.com/v1")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Realtime/OpenAIRealtimeModel.swift:13:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'OpenAIRealtimeModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'OpenAIRealtimeModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:198:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m196 |[0;0m final class RealtimeTransport: @unchecked Sendable {
[0;36m197 |[0;0m private let model: any RealtimeModel
[0;36m198 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m199 |[0;0m private let lock = NSLock()
[0;36m200 |[0;0m private var task: URLSessionWebSocketTask?
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:200:23: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m198 |[0;0m private let urlSession: URLSession
[0;36m199 |[0;0m private let lock = NSLock()
[0;36m200 |[0;0m private var task: [4;39mURLSessionWebSocketTask[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m201 |[0;0m private var receiveLoop: Task<Void, Never>?
[0;36m202 |[0;0m
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:203:48: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m201 |[0;0m private var receiveLoop: Task<Void, Never>?
[0;36m202 |[0;0m
[0;36m203 |[0;0m init(model: any RealtimeModel, urlSession: [4;39mURLSession[0;0m = .shared) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m204 |[0;0m self.model = model
[0;36m205 |[0;0m self.urlSession = urlSession
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:203:62: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m201 |[0;0m private var receiveLoop: Task<Void, Never>?
[0;36m202 |[0;0m
[0;36m203 |[0;0m init(model: any RealtimeModel, urlSession: URLSession = .shared) {
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m204 |[0;0m self.model = model
[0;36m205 |[0;0m self.urlSession = urlSession
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:203:62: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m201 |[0;0m private var receiveLoop: Task<Void, Never>?
[0;36m202 |[0;0m
[0;36m203 |[0;0m init(model: any RealtimeModel, urlSession: URLSession = [4;39m.shared[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m204 |[0;0m self.model = model
[0;36m205 |[0;0m self.urlSession = urlSession
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:318:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m316 |[0;0m sessionConfig: RealtimeSessionConfig = RealtimeSessionConfig(),
[0;36m317 |[0;0m maxEvents: Int = 500,
[0;36m318 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m319 |[0;0m onToolCall: (@Sendable (ToolCall) async throws -> JSONValue?)? = nil
[0;36m320 |[0;0m ) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:318:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m316 |[0;0m sessionConfig: RealtimeSessionConfig = RealtimeSessionConfig(),
[0;36m317 |[0;0m maxEvents: Int = 500,
[0;36m318 |[0;0m urlSession: URLSession = .shared,
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m319 |[0;0m onToolCall: (@Sendable (ToolCall) async throws -> JSONValue?)? = nil
[0;36m320 |[0;0m ) {
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:318:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m316 |[0;0m sessionConfig: RealtimeSessionConfig = RealtimeSessionConfig(),
[0;36m317 |[0;0m maxEvents: Int = 500,
[0;36m318 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m319 |[0;0m onToolCall: (@Sendable (ToolCall) async throws -> JSONValue?)? = nil
[0;36m320 |[0;0m ) {
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:359:41: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m357 |[0;0m
[0;36m358 |[0;0m public func connect(
[0;36m359 |[0;0m tokenEndpoint: URL, urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m360 |[0;0m ) async throws {
[0;36m361 |[0;0m status = .connecting
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:359:55: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m357 |[0;0m
[0;36m358 |[0;0m public func connect(
[0;36m359 |[0;0m tokenEndpoint: URL, urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m360 |[0;0m ) async throws {
[0;36m361 |[0;0m status = .connecting
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:359:55: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m357 |[0;0m
[0;36m358 |[0;0m public func connect(
[0;36m359 |[0;0m tokenEndpoint: URL, urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m360 |[0;0m ) async throws {
[0;36m361 |[0;0m status = .connecting
/host/spi-builder-workspace/Sources/AI/Realtime/XaiRealtimeModel.swift:13:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Realtime/XaiRealtimeModel.swift:20:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.modelID = modelID
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Realtime/XaiRealtimeModel.swift:20:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Realtime/XaiRealtimeModel.swift:20:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m18 |[0;0m baseURL: URL = URL(string: "https://api.x.ai/v1")!,
[0;36m19 |[0;0m headers: [String: String] = [:],
[0;36m20 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m21 |[0;0m ) {
[0;36m22 |[0;0m self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Realtime/XaiRealtimeModel.swift:13:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'XaiRealtimeModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m11 |[0;0m private let baseURL: URL
[0;36m12 |[0;0m private let headers: [String: String]
[0;36m13 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'XaiRealtimeModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: [1;31merror: [1;39m'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m147 |[0;0m enum AWSEventStream {
[0;36m148 |[0;0m static func messages(
[0;36m149 |[0;0m from bytes: [4;39mURLSession[0;0m.AsyncBytes
[0;36m|[0;0m `- [1;31merror: [1;39m'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m150 |[0;0m ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
[0;36m151 |[0;0m AsyncThrowingStream { continuation in
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: [1;31merror: [1;39m'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m43 |[0;0m enum SSE {
[0;36m44 |[0;0m static func events(
[0;36m45 |[0;0m from bytes: [4;39mURLSession[0;0m.AsyncBytes
[0;36m|[0;0m `- [1;31merror: [1;39m'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m46 |[0;0m ) -> AsyncThrowingStream<SSEEvent, Error> {
[0;36m47 |[0;0m AsyncThrowingStream { continuation in
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:30:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m28 |[0;0m public var prepareReconnectToStreamRequest:
[0;36m29 |[0;0m (@Sendable (String) async throws -> PreparedChatRequest)?
[0;36m30 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m31 |[0;0m
[0;36m32 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:40:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m38 |[0;0m prepareReconnectToStreamRequest:
[0;36m39 |[0;0m (@Sendable (String) async throws -> PreparedChatRequest)? = nil,
[0;36m40 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m41 |[0;0m ) {
[0;36m42 |[0;0m self.api = api
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:40:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m38 |[0;0m prepareReconnectToStreamRequest:
[0;36m39 |[0;0m (@Sendable (String) async throws -> PreparedChatRequest)? = nil,
[0;36m40 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m41 |[0;0m ) {
[0;36m42 |[0;0m self.api = api
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:40:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m38 |[0;0m prepareReconnectToStreamRequest:
[0;36m39 |[0;0m (@Sendable (String) async throws -> PreparedChatRequest)? = nil,
[0;36m40 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m41 |[0;0m ) {
[0;36m42 |[0;0m self.api = api
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: [1;31merror: [1;39m'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m115 |[0;0m
[0;36m116 |[0;0m static func chunkStream(
[0;36m117 |[0;0m from bytes: [4;39mURLSession[0;0m.AsyncBytes
[0;36m|[0;0m `- [1;31merror: [1;39m'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m118 |[0;0m ) -> AsyncThrowingStream<UIMessageChunk, Error> {
[0;36m119 |[0;0m AsyncThrowingStream { continuation in
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:30:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'HTTPChatTransport' has non-Sendable type 'AnyObject'[0;0m
[0;36m28 |[0;0m public var prepareReconnectToStreamRequest:
[0;36m29 |[0;0m (@Sendable (String) async throws -> PreparedChatRequest)?
[0;36m30 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'HTTPChatTransport' has non-Sendable type 'AnyObject'[0;0m
[0;36m31 |[0;0m
[0;36m32 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:10:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m8 |[0;0m public var headers: [String: String]
[0;36m9 |[0;0m public var body: JSONValue?
[0;36m10 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m
[0;36m12 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:16:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m headers: [String: String] = [:],
[0;36m15 |[0;0m body: JSONValue? = nil,
[0;36m16 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m17 |[0;0m ) {
[0;36m18 |[0;0m self.api = api
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:16:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m14 |[0;0m headers: [String: String] = [:],
[0;36m15 |[0;0m body: JSONValue? = nil,
[0;36m16 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m17 |[0;0m ) {
[0;36m18 |[0;0m self.api = api
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:16:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m14 |[0;0m headers: [String: String] = [:],
[0;36m15 |[0;0m body: JSONValue? = nil,
[0;36m16 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m17 |[0;0m ) {
[0;36m18 |[0;0m self.api = api
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:10:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'TextStreamChatTransport' has non-Sendable type 'AnyObject'[0;0m
[0;36m8 |[0;0m public var headers: [String: String]
[0;36m9 |[0;0m public var body: JSONValue?
[0;36m10 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'TextStreamChatTransport' has non-Sendable type 'AnyObject'[0;0m
[0;36m11 |[0;0m
[0;36m12 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:76:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m74 |[0;0m public var headers: [String: String]
[0;36m75 |[0;0m public var body: JSONValue?
[0;36m76 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m77 |[0;0m
[0;36m78 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:82:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m80 |[0;0m headers: [String: String] = [:],
[0;36m81 |[0;0m body: JSONValue? = nil,
[0;36m82 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m83 |[0;0m ) {
[0;36m84 |[0;0m self.api = api
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:82:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m80 |[0;0m headers: [String: String] = [:],
[0;36m81 |[0;0m body: JSONValue? = nil,
[0;36m82 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m83 |[0;0m ) {
[0;36m84 |[0;0m self.api = api
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:82:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m80 |[0;0m headers: [String: String] = [:],
[0;36m81 |[0;0m body: JSONValue? = nil,
[0;36m82 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m83 |[0;0m ) {
[0;36m84 |[0;0m self.api = api
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:76:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'HTTPCompletionTransport' has non-Sendable type 'AnyObject'[0;0m
[0;36m74 |[0;0m public var headers: [String: String]
[0;36m75 |[0;0m public var body: JSONValue?
[0;36m76 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'HTTPCompletionTransport' has non-Sendable type 'AnyObject'[0;0m
[0;36m77 |[0;0m
[0;36m78 |[0;0m public init(
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:91:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m89 |[0;0m public var api: URL
[0;36m90 |[0;0m public var headers: [String: String]
[0;36m91 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m92 |[0;0m
[0;36m93 |[0;0m public init(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:96:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m94 |[0;0m api: URL,
[0;36m95 |[0;0m headers: [String: String] = [:],
[0;36m96 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m97 |[0;0m ) {
[0;36m98 |[0;0m self.api = api
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:96:35: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m94 |[0;0m api: URL,
[0;36m95 |[0;0m headers: [String: String] = [:],
[0;36m96 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m97 |[0;0m ) {
[0;36m98 |[0;0m self.api = api
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:96:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m94 |[0;0m api: URL,
[0;36m95 |[0;0m headers: [String: String] = [:],
[0;36m96 |[0;0m urlSession: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m97 |[0;0m ) {
[0;36m98 |[0;0m self.api = api
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:91:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'HTTPObjectTransport' has non-Sendable type 'AnyObject'[0;0m
[0;36m89 |[0;0m public var api: URL
[0;36m90 |[0;0m public var headers: [String: String]
[0;36m91 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'HTTPObjectTransport' has non-Sendable type 'AnyObject'[0;0m
[0;36m92 |[0;0m
[0;36m93 |[0;0m public init(
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/AI/Core/AIError.swift /host/spi-builder-workspace/Sources/AI/Core/Agent.swift /host/spi-builder-workspace/Sources/AI/Core/Compaction.swift /host/spi-builder-workspace/Sources/AI/Core/Embeddings.swift /host/spi-builder-workspace/Sources/AI/Core/GenerateObject.swift /host/spi-builder-workspace/Sources/AI/Core/GenerateText.swift /host/spi-builder-workspace/Sources/AI/Core/ImageGeneration.swift /host/spi-builder-workspace/Sources/AI/Core/LanguageModel.swift /host/spi-builder-workspace/Sources/AI/Core/Message.swift /host/spi-builder-workspace/Sources/AI/Core/Middleware.swift /host/spi-builder-workspace/Sources/AI/Core/ModelContextWindows.swift /host/spi-builder-workspace/Sources/AI/Core/ModelMiddleware.swift /host/spi-builder-workspace/Sources/AI/Core/ProviderDefinedTool.swift /host/spi-builder-workspace/Sources/AI/Core/ProviderRegistry.swift /host/spi-builder-workspace/Sources/AI/Core/PruneMessages.swift /host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift /host/spi-builder-workspace/Sources/AI/Core/Reranking.swift /host/spi-builder-workspace/Sources/AI/Core/Retry.swift /host/spi-builder-workspace/Sources/AI/Core/RuntimeContext.swift /host/spi-builder-workspace/Sources/AI/Core/Schema.swift /host/spi-builder-workspace/Sources/AI/Core/SpeechGeneration.swift /host/spi-builder-workspace/Sources/AI/Core/StepControl.swift /host/spi-builder-workspace/Sources/AI/Core/StepRequest.swift /host/spi-builder-workspace/Sources/AI/Core/StreamSmoothing.swift /host/spi-builder-workspace/Sources/AI/Core/StreamText.swift /host/spi-builder-workspace/Sources/AI/Core/StreamTranscription.swift /host/spi-builder-workspace/Sources/AI/Core/Telemetry.swift /host/spi-builder-workspace/Sources/AI/Core/Timeouts.swift /host/spi-builder-workspace/Sources/AI/Core/Tool.swift /host/spi-builder-workspace/Sources/AI/Core/ToolApproval.swift /host/spi-builder-workspace/Sources/AI/Core/Transcription.swift /host/spi-builder-workspace/Sources/AI/Core/VideoGeneration.swift /host/spi-builder-workspace/Sources/AI/MCP/MCPClient.swift /host/spi-builder-workspace/Sources/AI/MCP/MCPOAuth.swift /host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift /host/spi-builder-workspace/Sources/AI/MCP/MCPStdioTransport.swift /host/spi-builder-workspace/Sources/AI/MCP/MCPToolDrift.swift /host/spi-builder-workspace/Sources/AI/Providers/AIGatewayModel.swift /host/spi-builder-workspace/Sources/AI/Providers/AlibabaModel.swift /host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift /host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift /host/spi-builder-workspace/Sources/AI/Providers/AzureOpenAIProvider.swift /host/spi-builder-workspace/Sources/AI/Providers/BasetenModel.swift /host/spi-builder-workspace/Sources/AI/Providers/BedrockMantleProvider.swift /host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift /host/spi-builder-workspace/Sources/AI/Providers/BlackForestLabsModel.swift /host/spi-builder-workspace/Sources/AI/Providers/ByteDanceModel.swift /host/spi-builder-workspace/Sources/AI/Providers/CartesiaModel.swift /host/spi-builder-workspace/Sources/AI/Providers/CerebrasModel.swift /host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift /host/spi-builder-workspace/Sources/AI/Providers/CohereRerankingModel.swift /host/spi-builder-workspace/Sources/AI/Providers/DeepInfraModel.swift /host/spi-builder-workspace/Sources/AI/Providers/DeepSeekModel.swift /host/spi-builder-workspace/Sources/AI/Providers/DeepgramStreamingTranscription.swift /host/spi-builder-workspace/Sources/AI/Providers/ElevenLabsModels.swift /host/spi-builder-workspace/Sources/AI/Providers/FileUploads.swift /host/spi-builder-workspace/Sources/AI/Providers/FireworksModel.swift /host/spi-builder-workspace/Sources/AI/Providers/FoundationModelsModel.swift /host/spi-builder-workspace/Sources/AI/Providers/GoogleEmbeddingModel.swift /host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift /host/spi-builder-workspace/Sources/AI/Providers/GoogleMediaModels.swift /host/spi-builder-workspace/Sources/AI/Providers/GoogleModel.swift /host/spi-builder-workspace/Sources/AI/Providers/GooglePlatformClients.swift /host/spi-builder-workspace/Sources/AI/Providers/GoogleVertexModel.swift /host/spi-builder-workspace/Sources/AI/Providers/GroqModel.swift /host/spi-builder-workspace/Sources/AI/Providers/HuggingFaceModel.swift /host/spi-builder-workspace/Sources/AI/Providers/KlingVideoModel.swift /host/spi-builder-workspace/Sources/AI/Providers/LMStudioModel.swift /host/spi-builder-workspace/Sources/AI/Providers/MediaGenerationPacks.swift /host/spi-builder-workspace/Sources/AI/Providers/MetaModel.swift /host/spi-builder-workspace/Sources/AI/Providers/MistralModel.swift /host/spi-builder-workspace/Sources/AI/Providers/MoonshotModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OllamaModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleModelSupport.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIEmbeddingModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIImageModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesClient.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAISpeechModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAITranscriptionModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenRouterModel.swift /host/spi-builder-workspace/Sources/AI/Providers/PerplexityModel.swift /host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift /host/spi-builder-workspace/Sources/AI/Providers/SarvamModel.swift /host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift /host/spi-builder-workspace/Sources/AI/Providers/TogetherAIModel.swift /host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift /host/spi-builder-workspace/Sources/AI/Providers/VercelModel.swift /host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift /host/spi-builder-workspace/Sources/AI/Providers/XaiImageModel.swift /host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift /host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift /host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift /host/spi-builder-workspace/Sources/AI/Realtime/AudioResampling.swift /host/spi-builder-workspace/Sources/AI/Realtime/GoogleRealtimeModel.swift /host/spi-builder-workspace/Sources/AI/Realtime/OpenAIRealtimeModel.swift /host/spi-builder-workspace/Sources/AI/Realtime/RealtimeModel.swift /host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift /host/spi-builder-workspace/Sources/AI/Realtime/XaiRealtimeModel.swift /host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift /host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift /host/spi-builder-workspace/Sources/AI/Transport/ChatTransport.swift /host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift /host/spi-builder-workspace/Sources/AI/Transport/LocalChatTransport.swift /host/spi-builder-workspace/Sources/AI/Transport/StreamBridge.swift /host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift /host/spi-builder-workspace/Sources/AI/Transport/UIMessage.swift /host/spi-builder-workspace/Sources/AI/Transport/UIMessageChunk.swift /host/spi-builder-workspace/Sources/AI/Transport/UIMessageReducer.swift /host/spi-builder-workspace/Sources/AI/Transport/UIMessageStreamBuilder.swift /host/spi-builder-workspace/Sources/AI/UI/ChatSession.swift /host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift /host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift /host/spi-builder-workspace/Sources/AI/Util/JSONValue.swift /host/spi-builder-workspace/Sources/AI/Util/MultipartForm.swift /host/spi-builder-workspace/Sources/AI/Util/PartialJSON.swift /host/spi-builder-workspace/Sources/AI/Util/ResponseURL.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-upcoming-feature StrictConcurrency -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name AI -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/Objects-normal/wasm32/AI_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/Objects-normal/wasm32/Modules/AI.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/Objects-normal/wasm32/Modules/AI.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/Objects-normal/wasm32/AI-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/Objects-normal/wasm32/AI-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/Objects-normal/wasm32/AI-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/Objects-normal/wasm32/Modules/AI.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm