Build Information
Failed to build Swollama, reference master (72dc85), with Swift 6.3 for Wasm on 21 Jul 2026 11:59:41 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-3":/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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 333316120c8b89ed7d21f1b34865290794301d91
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/guitaripod/Swollama.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/guitaripod/Swollama
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 72dc852 docs: refresh README features (auth, Swift 6, platforms)
Cloned https://github.com/guitaripod/Swollama.git
Revision (git rev-parse @):
72dc8524d6531a59aa8e358a0d63644a912ab150
SUCCESS checkout https://github.com/guitaripod/Swollama.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/guitaripod/Swollama.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-3":/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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:501b6bfc4ca8a27c305c68f9d5c778f996de82635741ab45476a03ffa6fa26d2
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/42] Emitting module Swollama
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
56 | ) {
57 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
56 | ) {
57 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
9 | static func enhancedStreamTask(
10 | session: URLSession,
11 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | configuration: OllamaConfiguration
13 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | static func enhancedStreamTask(
10 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | for request: URLRequest,
12 | configuration: OllamaConfiguration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:13:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | for request: URLRequest,
12 | configuration: OllamaConfiguration
13 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if os(Linux)
15 | return try await curlStreamTask(for: request, configuration: configuration)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:12:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | static func createSession(
12 | configuration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | allowsInsecureConnections: Bool = false
14 | ) -> URLSession {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:14:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | configuration: URLSessionConfiguration,
13 | allowsInsecureConnections: Bool = false
14 | ) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | #if !os(Linux)
16 | if allowsInsecureConnections {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:27:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | static func createDefaultConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | let config = URLSessionConfiguration.default
29 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
42 | static func dataTask(
43 | session: URLSession,
44 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
45 | ) async throws -> (Data, URLResponse) {
46 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:43:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | static func dataTask(
43 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | for request: URLRequest
45 | ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:45:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | session: URLSession,
44 | for request: URLRequest
45 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | #if canImport(FoundationNetworking)
47 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:70:22: error: cannot find type 'URLRequest' in scope
68 | static func streamTask(
69 | session: URLSession,
70 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
72 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:69:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |
68 | static func streamTask(
69 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | for request: URLRequest
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:71:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | session: URLSession,
70 | for request: URLRequest
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | #if canImport(FoundationNetworking)
73 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:131:50: error: cannot find type 'URLSessionDelegate' in scope
129 | ///
130 | /// Installed only when ``OllamaConfiguration/allowsInsecureConnections`` is `true`.
131 | final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
132 | func urlSession(
133 | _ session: URLSession,
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:136:39: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
134 | didReceive challenge: URLAuthenticationChallenge,
135 | completionHandler:
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:133:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
132 | func urlSession(
133 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | didReceive challenge: URLAuthenticationChallenge,
135 | completionHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:134:35: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | func urlSession(
133 | _ session: URLSession,
134 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 | completionHandler:
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:55:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | public nonisolated let configuration: OllamaConfiguration
54 |
55 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | let decoder: JSONDecoder
57 | private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:100:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | baseURL: URL,
99 | configuration: OllamaConfiguration,
100 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | ) {
102 | self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:124:61: error: cannot find type 'URLRequest' in scope
122 | }
123 |
124 | nonisolated func applyStandardHeaders(to request: inout URLRequest, hasBody: Bool) {
| `- error: cannot find type 'URLRequest' in scope
125 | if hasBody {
126 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:199:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 | /// Parses a numeric `Retry-After` header into seconds.
199 | static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 | return TimeInterval(value.trimmingCharacters(in: .whitespaces))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:72:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
70 |
71 | let config = NetworkingSupport.createDefaultConfiguration()
72 | config.timeoutIntervalForRequest = configuration.timeoutInterval
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
73 |
74 | self.session = NetworkingSupport.createSession(
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | private let apiKey: String
43 | private let baseURL: URL
44 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Creates a new Ollama web search client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | ) {
57 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
[5/46] Compiling Swollama AgentConfiguration.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
56 | ) {
57 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
56 | ) {
57 | self.apiKey = apiKey
[6/46] Compiling Swollama AgentEvent.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
56 | ) {
57 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
56 | ) {
57 | self.apiKey = apiKey
[7/46] Compiling Swollama OllamaAgent.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
56 | ) {
57 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
56 | ) {
57 | self.apiKey = apiKey
[8/46] Compiling Swollama ChatOptions.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
56 | ) {
57 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
56 | ) {
57 | self.apiKey = apiKey
[9/46] Compiling Swollama EmbeddingOptions.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
56 | ) {
57 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
56 | ) {
57 | self.apiKey = apiKey
[10/46] Compiling Swollama OperationProgress.swift
[11/46] Compiling Swollama RunningModelsResponse.swift
[12/46] Compiling Swollama ShowModelRequest.swift
[13/46] Compiling Swollama ThinkingMode.swift
[14/46] Compiling Swollama ToolCall.swift
[15/46] Compiling Swollama ToolDefinition.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
9 | static func enhancedStreamTask(
10 | session: URLSession,
11 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | configuration: OllamaConfiguration
13 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | static func enhancedStreamTask(
10 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | for request: URLRequest,
12 | configuration: OllamaConfiguration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:13:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | for request: URLRequest,
12 | configuration: OllamaConfiguration
13 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if os(Linux)
15 | return try await curlStreamTask(for: request, configuration: configuration)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:70:22: error: cannot find type 'URLRequest' in scope
68 | static func streamTask(
69 | session: URLSession,
70 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
72 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:12:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | static func createSession(
12 | configuration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | allowsInsecureConnections: Bool = false
14 | ) -> URLSession {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:14:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | configuration: URLSessionConfiguration,
13 | allowsInsecureConnections: Bool = false
14 | ) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | #if !os(Linux)
16 | if allowsInsecureConnections {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:27:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | static func createDefaultConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | let config = URLSessionConfiguration.default
29 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
42 | static func dataTask(
43 | session: URLSession,
44 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
45 | ) async throws -> (Data, URLResponse) {
46 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:43:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | static func dataTask(
43 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | for request: URLRequest
45 | ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:45:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | session: URLSession,
44 | for request: URLRequest
45 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | #if canImport(FoundationNetworking)
47 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:69:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |
68 | static func streamTask(
69 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | for request: URLRequest
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:71:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | session: URLSession,
70 | for request: URLRequest
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | #if canImport(FoundationNetworking)
73 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:131:50: error: cannot find type 'URLSessionDelegate' in scope
129 | ///
130 | /// Installed only when ``OllamaConfiguration/allowsInsecureConnections`` is `true`.
131 | final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
132 | func urlSession(
133 | _ session: URLSession,
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:136:39: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
134 | didReceive challenge: URLAuthenticationChallenge,
135 | completionHandler:
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:133:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
132 | func urlSession(
133 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | didReceive challenge: URLAuthenticationChallenge,
135 | completionHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:134:35: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | func urlSession(
133 | _ session: URLSession,
134 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 | completionHandler:
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:17:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
15 | #if !os(Linux)
16 | if allowsInsecureConnections {
17 | return URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | configuration: configuration,
19 | delegate: InsecureTrustDelegate(),
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:20:36: error: 'nil' requires a contextual type
18 | configuration: configuration,
19 | delegate: InsecureTrustDelegate(),
20 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
21 | )
22 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:24:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | #endif
24 | return URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | }
26 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 |
27 | static func createDefaultConfiguration() -> URLSessionConfiguration {
28 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
29 |
30 | config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
29 |
30 | config.urlCache = nil
31 | config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
32 |
33 | #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:64:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
62 | #else
63 |
64 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 | #endif
66 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:97:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
95 | #else
96 |
97 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
98 | let stream = AsyncThrowingStream<Data, Error> { continuation in
99 | let task = Task {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:139:20: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
139 | == NSURLAuthenticationMethodServerTrust,
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
140 | let trust = challenge.protectionSpace.serverTrust
141 | {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:138:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
139 | == NSURLAuthenticationMethodServerTrust,
140 | let trust = challenge.protectionSpace.serverTrust
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:140:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
138 | if challenge.protectionSpace.authenticationMethod
139 | == NSURLAuthenticationMethodServerTrust,
140 | let trust = challenge.protectionSpace.serverTrust
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
141 | {
142 | completionHandler(.useCredential, URLCredential(trust: trust))
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:36: error: cannot infer contextual base in reference to member 'useCredential'
140 | let trust = challenge.protectionSpace.serverTrust
141 | {
142 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:51: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
140 | let trust = challenge.protectionSpace.serverTrust
141 | {
142 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
142 | completionHandler(.useCredential, URLCredential(trust: trust))
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
145 | }
146 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:60: error: 'nil' requires a contextual type
142 | completionHandler(.useCredential, URLCredential(trust: trust))
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
145 | }
146 | }
[16/46] Compiling Swollama VersionResponse.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
9 | static func enhancedStreamTask(
10 | session: URLSession,
11 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | configuration: OllamaConfiguration
13 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | static func enhancedStreamTask(
10 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | for request: URLRequest,
12 | configuration: OllamaConfiguration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:13:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | for request: URLRequest,
12 | configuration: OllamaConfiguration
13 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if os(Linux)
15 | return try await curlStreamTask(for: request, configuration: configuration)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:70:22: error: cannot find type 'URLRequest' in scope
68 | static func streamTask(
69 | session: URLSession,
70 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
72 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:12:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | static func createSession(
12 | configuration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | allowsInsecureConnections: Bool = false
14 | ) -> URLSession {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:14:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | configuration: URLSessionConfiguration,
13 | allowsInsecureConnections: Bool = false
14 | ) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | #if !os(Linux)
16 | if allowsInsecureConnections {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:27:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | static func createDefaultConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | let config = URLSessionConfiguration.default
29 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
42 | static func dataTask(
43 | session: URLSession,
44 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
45 | ) async throws -> (Data, URLResponse) {
46 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:43:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | static func dataTask(
43 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | for request: URLRequest
45 | ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:45:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | session: URLSession,
44 | for request: URLRequest
45 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | #if canImport(FoundationNetworking)
47 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:69:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |
68 | static func streamTask(
69 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | for request: URLRequest
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:71:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | session: URLSession,
70 | for request: URLRequest
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | #if canImport(FoundationNetworking)
73 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:131:50: error: cannot find type 'URLSessionDelegate' in scope
129 | ///
130 | /// Installed only when ``OllamaConfiguration/allowsInsecureConnections`` is `true`.
131 | final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
132 | func urlSession(
133 | _ session: URLSession,
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:136:39: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
134 | didReceive challenge: URLAuthenticationChallenge,
135 | completionHandler:
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:133:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
132 | func urlSession(
133 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | didReceive challenge: URLAuthenticationChallenge,
135 | completionHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:134:35: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | func urlSession(
133 | _ session: URLSession,
134 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 | completionHandler:
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:17:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
15 | #if !os(Linux)
16 | if allowsInsecureConnections {
17 | return URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | configuration: configuration,
19 | delegate: InsecureTrustDelegate(),
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:20:36: error: 'nil' requires a contextual type
18 | configuration: configuration,
19 | delegate: InsecureTrustDelegate(),
20 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
21 | )
22 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:24:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | #endif
24 | return URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | }
26 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 |
27 | static func createDefaultConfiguration() -> URLSessionConfiguration {
28 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
29 |
30 | config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
29 |
30 | config.urlCache = nil
31 | config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
32 |
33 | #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:64:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
62 | #else
63 |
64 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 | #endif
66 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:97:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
95 | #else
96 |
97 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
98 | let stream = AsyncThrowingStream<Data, Error> { continuation in
99 | let task = Task {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:139:20: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
139 | == NSURLAuthenticationMethodServerTrust,
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
140 | let trust = challenge.protectionSpace.serverTrust
141 | {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:138:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
139 | == NSURLAuthenticationMethodServerTrust,
140 | let trust = challenge.protectionSpace.serverTrust
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:140:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
138 | if challenge.protectionSpace.authenticationMethod
139 | == NSURLAuthenticationMethodServerTrust,
140 | let trust = challenge.protectionSpace.serverTrust
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
141 | {
142 | completionHandler(.useCredential, URLCredential(trust: trust))
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:36: error: cannot infer contextual base in reference to member 'useCredential'
140 | let trust = challenge.protectionSpace.serverTrust
141 | {
142 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:51: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
140 | let trust = challenge.protectionSpace.serverTrust
141 | {
142 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
142 | completionHandler(.useCredential, URLCredential(trust: trust))
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
145 | }
146 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:60: error: 'nil' requires a contextual type
142 | completionHandler(.useCredential, URLCredential(trust: trust))
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
145 | }
146 | }
[17/46] Compiling Swollama NetworkingSupport+Streaming.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
9 | static func enhancedStreamTask(
10 | session: URLSession,
11 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | configuration: OllamaConfiguration
13 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | static func enhancedStreamTask(
10 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | for request: URLRequest,
12 | configuration: OllamaConfiguration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:13:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | for request: URLRequest,
12 | configuration: OllamaConfiguration
13 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if os(Linux)
15 | return try await curlStreamTask(for: request, configuration: configuration)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:70:22: error: cannot find type 'URLRequest' in scope
68 | static func streamTask(
69 | session: URLSession,
70 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
72 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:12:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | static func createSession(
12 | configuration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | allowsInsecureConnections: Bool = false
14 | ) -> URLSession {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:14:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | configuration: URLSessionConfiguration,
13 | allowsInsecureConnections: Bool = false
14 | ) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | #if !os(Linux)
16 | if allowsInsecureConnections {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:27:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | static func createDefaultConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | let config = URLSessionConfiguration.default
29 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
42 | static func dataTask(
43 | session: URLSession,
44 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
45 | ) async throws -> (Data, URLResponse) {
46 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:43:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | static func dataTask(
43 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | for request: URLRequest
45 | ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:45:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | session: URLSession,
44 | for request: URLRequest
45 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | #if canImport(FoundationNetworking)
47 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:69:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |
68 | static func streamTask(
69 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | for request: URLRequest
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:71:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | session: URLSession,
70 | for request: URLRequest
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | #if canImport(FoundationNetworking)
73 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:131:50: error: cannot find type 'URLSessionDelegate' in scope
129 | ///
130 | /// Installed only when ``OllamaConfiguration/allowsInsecureConnections`` is `true`.
131 | final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
132 | func urlSession(
133 | _ session: URLSession,
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:136:39: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
134 | didReceive challenge: URLAuthenticationChallenge,
135 | completionHandler:
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:133:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
132 | func urlSession(
133 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | didReceive challenge: URLAuthenticationChallenge,
135 | completionHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:134:35: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | func urlSession(
133 | _ session: URLSession,
134 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 | completionHandler:
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:17:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
15 | #if !os(Linux)
16 | if allowsInsecureConnections {
17 | return URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | configuration: configuration,
19 | delegate: InsecureTrustDelegate(),
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:20:36: error: 'nil' requires a contextual type
18 | configuration: configuration,
19 | delegate: InsecureTrustDelegate(),
20 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
21 | )
22 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:24:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | #endif
24 | return URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | }
26 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 |
27 | static func createDefaultConfiguration() -> URLSessionConfiguration {
28 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
29 |
30 | config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
29 |
30 | config.urlCache = nil
31 | config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
32 |
33 | #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:64:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
62 | #else
63 |
64 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 | #endif
66 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:97:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
95 | #else
96 |
97 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
98 | let stream = AsyncThrowingStream<Data, Error> { continuation in
99 | let task = Task {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:139:20: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
139 | == NSURLAuthenticationMethodServerTrust,
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
140 | let trust = challenge.protectionSpace.serverTrust
141 | {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:138:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
139 | == NSURLAuthenticationMethodServerTrust,
140 | let trust = challenge.protectionSpace.serverTrust
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:140:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
138 | if challenge.protectionSpace.authenticationMethod
139 | == NSURLAuthenticationMethodServerTrust,
140 | let trust = challenge.protectionSpace.serverTrust
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
141 | {
142 | completionHandler(.useCredential, URLCredential(trust: trust))
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:36: error: cannot infer contextual base in reference to member 'useCredential'
140 | let trust = challenge.protectionSpace.serverTrust
141 | {
142 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:51: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
140 | let trust = challenge.protectionSpace.serverTrust
141 | {
142 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
142 | completionHandler(.useCredential, URLCredential(trust: trust))
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
145 | }
146 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:60: error: 'nil' requires a contextual type
142 | completionHandler(.useCredential, URLCredential(trust: trust))
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
145 | }
146 | }
[18/46] Compiling Swollama NetworkingSupport.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
9 | static func enhancedStreamTask(
10 | session: URLSession,
11 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | configuration: OllamaConfiguration
13 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | static func enhancedStreamTask(
10 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | for request: URLRequest,
12 | configuration: OllamaConfiguration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:13:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | for request: URLRequest,
12 | configuration: OllamaConfiguration
13 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if os(Linux)
15 | return try await curlStreamTask(for: request, configuration: configuration)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:70:22: error: cannot find type 'URLRequest' in scope
68 | static func streamTask(
69 | session: URLSession,
70 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
72 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:12:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | static func createSession(
12 | configuration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | allowsInsecureConnections: Bool = false
14 | ) -> URLSession {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:14:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | configuration: URLSessionConfiguration,
13 | allowsInsecureConnections: Bool = false
14 | ) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | #if !os(Linux)
16 | if allowsInsecureConnections {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:27:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | static func createDefaultConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | let config = URLSessionConfiguration.default
29 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
42 | static func dataTask(
43 | session: URLSession,
44 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
45 | ) async throws -> (Data, URLResponse) {
46 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:43:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | static func dataTask(
43 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | for request: URLRequest
45 | ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:45:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | session: URLSession,
44 | for request: URLRequest
45 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | #if canImport(FoundationNetworking)
47 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:69:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |
68 | static func streamTask(
69 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | for request: URLRequest
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:71:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | session: URLSession,
70 | for request: URLRequest
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | #if canImport(FoundationNetworking)
73 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:131:50: error: cannot find type 'URLSessionDelegate' in scope
129 | ///
130 | /// Installed only when ``OllamaConfiguration/allowsInsecureConnections`` is `true`.
131 | final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
132 | func urlSession(
133 | _ session: URLSession,
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:136:39: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
134 | didReceive challenge: URLAuthenticationChallenge,
135 | completionHandler:
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:133:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
132 | func urlSession(
133 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | didReceive challenge: URLAuthenticationChallenge,
135 | completionHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:134:35: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | func urlSession(
133 | _ session: URLSession,
134 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 | completionHandler:
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:17:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
15 | #if !os(Linux)
16 | if allowsInsecureConnections {
17 | return URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | configuration: configuration,
19 | delegate: InsecureTrustDelegate(),
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:20:36: error: 'nil' requires a contextual type
18 | configuration: configuration,
19 | delegate: InsecureTrustDelegate(),
20 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
21 | )
22 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:24:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | #endif
24 | return URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | }
26 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 |
27 | static func createDefaultConfiguration() -> URLSessionConfiguration {
28 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
29 |
30 | config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
29 |
30 | config.urlCache = nil
31 | config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
32 |
33 | #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:64:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
62 | #else
63 |
64 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 | #endif
66 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:97:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
95 | #else
96 |
97 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
98 | let stream = AsyncThrowingStream<Data, Error> { continuation in
99 | let task = Task {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:139:20: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
139 | == NSURLAuthenticationMethodServerTrust,
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
140 | let trust = challenge.protectionSpace.serverTrust
141 | {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:138:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
139 | == NSURLAuthenticationMethodServerTrust,
140 | let trust = challenge.protectionSpace.serverTrust
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:140:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
138 | if challenge.protectionSpace.authenticationMethod
139 | == NSURLAuthenticationMethodServerTrust,
140 | let trust = challenge.protectionSpace.serverTrust
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
141 | {
142 | completionHandler(.useCredential, URLCredential(trust: trust))
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:36: error: cannot infer contextual base in reference to member 'useCredential'
140 | let trust = challenge.protectionSpace.serverTrust
141 | {
142 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:51: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
140 | let trust = challenge.protectionSpace.serverTrust
141 | {
142 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
142 | completionHandler(.useCredential, URLCredential(trust: trust))
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
145 | }
146 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:60: error: 'nil' requires a contextual type
142 | completionHandler(.useCredential, URLCredential(trust: trust))
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
145 | }
146 | }
[19/46] Compiling Swollama OllamaClient+Generation.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
9 | static func enhancedStreamTask(
10 | session: URLSession,
11 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | configuration: OllamaConfiguration
13 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | static func enhancedStreamTask(
10 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | for request: URLRequest,
12 | configuration: OllamaConfiguration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:13:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | for request: URLRequest,
12 | configuration: OllamaConfiguration
13 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if os(Linux)
15 | return try await curlStreamTask(for: request, configuration: configuration)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:70:22: error: cannot find type 'URLRequest' in scope
68 | static func streamTask(
69 | session: URLSession,
70 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
72 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:12:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | static func createSession(
12 | configuration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | allowsInsecureConnections: Bool = false
14 | ) -> URLSession {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:14:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | configuration: URLSessionConfiguration,
13 | allowsInsecureConnections: Bool = false
14 | ) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | #if !os(Linux)
16 | if allowsInsecureConnections {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:27:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | static func createDefaultConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | let config = URLSessionConfiguration.default
29 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
42 | static func dataTask(
43 | session: URLSession,
44 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
45 | ) async throws -> (Data, URLResponse) {
46 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:43:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | static func dataTask(
43 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | for request: URLRequest
45 | ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:45:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | session: URLSession,
44 | for request: URLRequest
45 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | #if canImport(FoundationNetworking)
47 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:69:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |
68 | static func streamTask(
69 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | for request: URLRequest
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:71:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | session: URLSession,
70 | for request: URLRequest
71 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | #if canImport(FoundationNetworking)
73 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:131:50: error: cannot find type 'URLSessionDelegate' in scope
129 | ///
130 | /// Installed only when ``OllamaConfiguration/allowsInsecureConnections`` is `true`.
131 | final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
132 | func urlSession(
133 | _ session: URLSession,
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:136:39: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
134 | didReceive challenge: URLAuthenticationChallenge,
135 | completionHandler:
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:133:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
132 | func urlSession(
133 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | didReceive challenge: URLAuthenticationChallenge,
135 | completionHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:134:35: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | func urlSession(
133 | _ session: URLSession,
134 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 | completionHandler:
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:17:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
15 | #if !os(Linux)
16 | if allowsInsecureConnections {
17 | return URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | configuration: configuration,
19 | delegate: InsecureTrustDelegate(),
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:20:36: error: 'nil' requires a contextual type
18 | configuration: configuration,
19 | delegate: InsecureTrustDelegate(),
20 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
21 | )
22 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:24:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | #endif
24 | return URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | }
26 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 |
27 | static func createDefaultConfiguration() -> URLSessionConfiguration {
28 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
29 |
30 | config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
29 |
30 | config.urlCache = nil
31 | config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
32 |
33 | #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:64:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
62 | #else
63 |
64 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 | #endif
66 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:97:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
95 | #else
96 |
97 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
98 | let stream = AsyncThrowingStream<Data, Error> { continuation in
99 | let task = Task {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:139:20: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
139 | == NSURLAuthenticationMethodServerTrust,
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
140 | let trust = challenge.protectionSpace.serverTrust
141 | {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:138:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
136 | @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
137 | ) {
138 | if challenge.protectionSpace.authenticationMethod
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
139 | == NSURLAuthenticationMethodServerTrust,
140 | let trust = challenge.protectionSpace.serverTrust
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:140:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
138 | if challenge.protectionSpace.authenticationMethod
139 | == NSURLAuthenticationMethodServerTrust,
140 | let trust = challenge.protectionSpace.serverTrust
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
141 | {
142 | completionHandler(.useCredential, URLCredential(trust: trust))
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:36: error: cannot infer contextual base in reference to member 'useCredential'
140 | let trust = challenge.protectionSpace.serverTrust
141 | {
142 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:51: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
140 | let trust = challenge.protectionSpace.serverTrust
141 | {
142 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
142 | completionHandler(.useCredential, URLCredential(trust: trust))
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
145 | }
146 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:60: error: 'nil' requires a contextual type
142 | completionHandler(.useCredential, URLCredential(trust: trust))
143 | } else {
144 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
145 | }
146 | }
[20/46] Compiling Swollama EmbeddingResponse.swift
[21/46] Compiling Swollama GenerateRequest.swift
[22/46] Compiling Swollama GenerateResponse.swift
[23/46] Compiling Swollama JSONValue.swift
[24/46] Compiling Swollama LegacyEmbedding.swift
[25/46] Compiling Swollama OllamaClient+ModelManagement.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:55:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | public nonisolated let configuration: OllamaConfiguration
54 |
55 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | let decoder: JSONDecoder
57 | private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:100:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | baseURL: URL,
99 | configuration: OllamaConfiguration,
100 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | ) {
102 | self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:124:61: error: cannot find type 'URLRequest' in scope
122 | }
123 |
124 | nonisolated func applyStandardHeaders(to request: inout URLRequest, hasBody: Bool) {
| `- error: cannot find type 'URLRequest' in scope
125 | if hasBody {
126 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:199:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 | /// Parses a numeric `Retry-After` header into seconds.
199 | static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 | return TimeInterval(value.trimmingCharacters(in: .whitespaces))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:72:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
70 |
71 | let config = NetworkingSupport.createDefaultConfiguration()
72 | config.timeoutIntervalForRequest = configuration.timeoutInterval
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
73 |
74 | self.session = NetworkingSupport.createSession(
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:139:23: error: cannot find 'URLRequest' in scope
137 | ) async throws -> Data {
138 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
139 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
140 | request.httpMethod = method
141 | request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
42 | static func dataTask(
43 | session: URLSession,
44 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
45 | ) async throws -> (Data, URLResponse) {
46 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:200:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
198 | /// Parses a numeric `Retry-After` header into seconds.
199 | static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 | guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
201 | return TimeInterval(value.trimmingCharacters(in: .whitespaces))
202 | }
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:201:59: error: cannot infer contextual base in reference to member 'whitespaces'
199 | static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 | guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 | return TimeInterval(value.trimmingCharacters(in: .whitespaces))
| `- error: cannot infer contextual base in reference to member 'whitespaces'
202 | }
203 |
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:222:35: error: cannot find 'URLRequest' in scope
220 | endpoint
221 | )
222 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
223 | request.httpMethod = method
224 | request.httpBody = body
[26/46] Compiling Swollama OllamaClient.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:55:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | public nonisolated let configuration: OllamaConfiguration
54 |
55 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | let decoder: JSONDecoder
57 | private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:100:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | baseURL: URL,
99 | configuration: OllamaConfiguration,
100 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | ) {
102 | self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:124:61: error: cannot find type 'URLRequest' in scope
122 | }
123 |
124 | nonisolated func applyStandardHeaders(to request: inout URLRequest, hasBody: Bool) {
| `- error: cannot find type 'URLRequest' in scope
125 | if hasBody {
126 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:199:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 | /// Parses a numeric `Retry-After` header into seconds.
199 | static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 | return TimeInterval(value.trimmingCharacters(in: .whitespaces))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:72:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
70 |
71 | let config = NetworkingSupport.createDefaultConfiguration()
72 | config.timeoutIntervalForRequest = configuration.timeoutInterval
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
73 |
74 | self.session = NetworkingSupport.createSession(
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:139:23: error: cannot find 'URLRequest' in scope
137 | ) async throws -> Data {
138 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
139 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
140 | request.httpMethod = method
141 | request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
42 | static func dataTask(
43 | session: URLSession,
44 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
45 | ) async throws -> (Data, URLResponse) {
46 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:200:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
198 | /// Parses a numeric `Retry-After` header into seconds.
199 | static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 | guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
201 | return TimeInterval(value.trimmingCharacters(in: .whitespaces))
202 | }
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:201:59: error: cannot infer contextual base in reference to member 'whitespaces'
199 | static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 | guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 | return TimeInterval(value.trimmingCharacters(in: .whitespaces))
| `- error: cannot infer contextual base in reference to member 'whitespaces'
202 | }
203 |
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:222:35: error: cannot find 'URLRequest' in scope
220 | endpoint
221 | )
222 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
223 | request.httpMethod = method
224 | request.httpBody = body
[27/46] Compiling Swollama OllamaConfiguration.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:55:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | public nonisolated let configuration: OllamaConfiguration
54 |
55 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | let decoder: JSONDecoder
57 | private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:100:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | baseURL: URL,
99 | configuration: OllamaConfiguration,
100 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | ) {
102 | self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:124:61: error: cannot find type 'URLRequest' in scope
122 | }
123 |
124 | nonisolated func applyStandardHeaders(to request: inout URLRequest, hasBody: Bool) {
| `- error: cannot find type 'URLRequest' in scope
125 | if hasBody {
126 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:199:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 | /// Parses a numeric `Retry-After` header into seconds.
199 | static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 | return TimeInterval(value.trimmingCharacters(in: .whitespaces))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:72:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
70 |
71 | let config = NetworkingSupport.createDefaultConfiguration()
72 | config.timeoutIntervalForRequest = configuration.timeoutInterval
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
73 |
74 | self.session = NetworkingSupport.createSession(
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:139:23: error: cannot find 'URLRequest' in scope
137 | ) async throws -> Data {
138 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
139 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
140 | request.httpMethod = method
141 | request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
42 | static func dataTask(
43 | session: URLSession,
44 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
45 | ) async throws -> (Data, URLResponse) {
46 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:200:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
198 | /// Parses a numeric `Retry-After` header into seconds.
199 | static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 | guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
201 | return TimeInterval(value.trimmingCharacters(in: .whitespaces))
202 | }
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:201:59: error: cannot infer contextual base in reference to member 'whitespaces'
199 | static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 | guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 | return TimeInterval(value.trimmingCharacters(in: .whitespaces))
| `- error: cannot infer contextual base in reference to member 'whitespaces'
202 | }
203 |
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:222:35: error: cannot find 'URLRequest' in scope
220 | endpoint
221 | )
222 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
223 | request.httpMethod = method
224 | request.httpBody = body
[28/46] Compiling Swollama OllamaError.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:55:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | public nonisolated let configuration: OllamaConfiguration
54 |
55 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | let decoder: JSONDecoder
57 | private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:100:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | baseURL: URL,
99 | configuration: OllamaConfiguration,
100 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | ) {
102 | self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:124:61: error: cannot find type 'URLRequest' in scope
122 | }
123 |
124 | nonisolated func applyStandardHeaders(to request: inout URLRequest, hasBody: Bool) {
| `- error: cannot find type 'URLRequest' in scope
125 | if hasBody {
126 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:199:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 | /// Parses a numeric `Retry-After` header into seconds.
199 | static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 | return TimeInterval(value.trimmingCharacters(in: .whitespaces))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:72:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
70 |
71 | let config = NetworkingSupport.createDefaultConfiguration()
72 | config.timeoutIntervalForRequest = configuration.timeoutInterval
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
73 |
74 | self.session = NetworkingSupport.createSession(
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:139:23: error: cannot find 'URLRequest' in scope
137 | ) async throws -> Data {
138 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
139 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
140 | request.httpMethod = method
141 | request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
42 | static func dataTask(
43 | session: URLSession,
44 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
45 | ) async throws -> (Data, URLResponse) {
46 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:200:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
198 | /// Parses a numeric `Retry-After` header into seconds.
199 | static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 | guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
201 | return TimeInterval(value.trimmingCharacters(in: .whitespaces))
202 | }
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:201:59: error: cannot infer contextual base in reference to member 'whitespaces'
199 | static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 | guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 | return TimeInterval(value.trimmingCharacters(in: .whitespaces))
| `- error: cannot infer contextual base in reference to member 'whitespaces'
202 | }
203 |
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:222:35: error: cannot find 'URLRequest' in scope
220 | endpoint
221 | )
222 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
223 | request.httpMethod = method
224 | request.httpBody = body
[29/46] Compiling Swollama GenerationOptions.swift
[30/46] Compiling Swollama ChatRequest.swift
[31/46] Compiling Swollama ChatResponse.swift
[32/46] Compiling Swollama CreateModelRequest.swift
[33/46] Compiling Swollama EmbeddingRequest.swift
[34/46] Compiling Swollama Logprob.swift
[35/46] Compiling Swollama ModelInformation.swift
[36/46] Compiling Swollama ModelsResponse.swift
[37/46] Compiling Swollama OllamaDate.swift
[38/46] Compiling Swollama OllamaModelName.swift
[39/46] Compiling Swollama OllamaProtocol+Convenience.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | private let apiKey: String
43 | private let baseURL: URL
44 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Creates a new Ollama web search client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | ) {
57 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
56 | ) {
57 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
56 | ) {
57 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
94 | ) async throws -> R {
95 | let url = baseURL.appendingPathComponent(path)
96 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
97 | request.httpMethod = "POST"
98 | request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 | request.httpBody = try JSONEncoder().encode(body)
101 |
102 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 | guard let httpResponse = response as? HTTPURLResponse else {
[40/46] Compiling Swollama OllamaProtocol.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | private let apiKey: String
43 | private let baseURL: URL
44 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Creates a new Ollama web search client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | ) {
57 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
56 | ) {
57 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
56 | ) {
57 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
94 | ) async throws -> R {
95 | let url = baseURL.appendingPathComponent(path)
96 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
97 | request.httpMethod = "POST"
98 | request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 | request.httpBody = try JSONEncoder().encode(body)
101 |
102 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 | guard let httpResponse = response as? HTTPURLResponse else {
[41/46] Compiling Swollama OllamaWebSearchClient.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | private let apiKey: String
43 | private let baseURL: URL
44 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Creates a new Ollama web search client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | ) {
57 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
56 | ) {
57 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
56 | ) {
57 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
94 | ) async throws -> R {
95 | let url = baseURL.appendingPathComponent(path)
96 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
97 | request.httpMethod = "POST"
98 | request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 | request.httpBody = try JSONEncoder().encode(body)
101 |
102 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 | guard let httpResponse = response as? HTTPURLResponse else {
[42/46] Compiling Swollama WebSearchModels.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | private let apiKey: String
43 | private let baseURL: URL
44 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Creates a new Ollama web search client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | ) {
57 | self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
56 | ) {
57 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | apiKey: String,
54 | baseURL: URL = URL(string: "https://ollama.com")!,
55 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
56 | ) {
57 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
94 | ) async throws -> R {
95 | let url = baseURL.appendingPathComponent(path)
96 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
97 | request.httpMethod = "POST"
98 | request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 | request.httpBody = try JSONEncoder().encode(body)
101 |
102 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 | guard let httpResponse = response as? HTTPURLResponse else {
BUILD FAILURE 6.3 wasm