Build Information
Failed to build SwiftOpenAI with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.39.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftBeta/SwiftOpenAI.git
Reference: main
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/SwiftBeta/SwiftOpenAI
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b316788 Edits and variations images (#45)
Cloned https://github.com/SwiftBeta/SwiftOpenAI.git
Revision (git rev-parse @):
b316788cf0e6584cc730d8231112dd2c76458713
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/SwiftBeta/SwiftOpenAI.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/SwiftBeta/SwiftOpenAI.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Fetching https://github.com/apple/swift-docc-symbolkit
Fetching https://github.com/apple/swift-docc-plugin
[1/2839] Fetching swift-docc-symbolkit
[2/4297] Fetching swift-docc-symbolkit, swift-docc-plugin
Fetched https://github.com/apple/swift-docc-symbolkit from cache (0.36s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.37s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.2.0 (0.39s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.42s)
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.2.0
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
switch dependency {
^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
switch dependency {
^
[1/1] Compiling plugin Swift-DocC
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
switch dependency {
^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
switch dependency {
^
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/57] Emitting module SwiftOpenAI
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:4:35: error: cannot find type 'URLRequest' in scope
func execute(with urlRequest: URLRequest) async -> Result<Data, APIError>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:4:49: error: cannot find type 'URLRequest' in scope
func buildURLRequest(endpoint: Endpoint) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:5:39: error: cannot find type 'URLRequest' in scope
func addHeaders(urlRequest: inout URLRequest, headers: [String: String])
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:12:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:8:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(urlSession: URLSession = URLSession.shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:14:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:24:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:25:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:71:39: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranscriptionRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:22:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:23:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:77:37: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranslationRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:10:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession)
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:22:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:54:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:60:47: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateChatCompletionsStreamRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
[6/64] Compiling SwiftOpenAI CreateTranscriptionDataModel.swift
[7/64] Compiling SwiftOpenAI CreateTranslationDataModel.swift
[8/64] Compiling SwiftOpenAI OpenAIAudioResponseType.swift
[9/64] Compiling SwiftOpenAI OpenAITTSModelType.swift
[10/64] Compiling SwiftOpenAI OpenAITranscriptionModelType.swift
[11/64] Compiling SwiftOpenAI OpenAIVoiceType.swift
[12/64] Compiling SwiftOpenAI ChatCompletionsDataModel.swift
[13/64] Compiling SwiftOpenAI ChatCompletionsOptionalParameters.swift
[14/64] Compiling SwiftOpenAI CreateImagesRequest.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Images/EditImageRequest.swift:58:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: urlRequest)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Images/VariationImageRequest.swift:48:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: urlRequest)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
[15/64] Compiling SwiftOpenAI EditImageRequest.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Images/EditImageRequest.swift:58:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: urlRequest)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Images/VariationImageRequest.swift:48:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: urlRequest)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
[16/64] Compiling SwiftOpenAI VariationImageRequest.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Images/EditImageRequest.swift:58:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: urlRequest)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Images/VariationImageRequest.swift:48:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: urlRequest)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
[17/64] Compiling SwiftOpenAI ListModelsRequest.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Images/EditImageRequest.swift:58:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: urlRequest)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Images/VariationImageRequest.swift:48:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: urlRequest)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
[18/64] Compiling SwiftOpenAI ModerationsRequest.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Images/EditImageRequest.swift:58:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: urlRequest)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Images/VariationImageRequest.swift:48:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: urlRequest)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
[19/64] Compiling SwiftOpenAI MultipartFormData.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Images/EditImageRequest.swift:58:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: urlRequest)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Images/VariationImageRequest.swift:48:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: urlRequest)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
[20/64] Compiling SwiftOpenAI SwiftOpenAI.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Images/EditImageRequest.swift:58:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: urlRequest)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Images/VariationImageRequest.swift:48:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: urlRequest)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
[21/64] Compiling SwiftOpenAI ChatCompletionsStreamDataModel.swift
[22/64] Compiling SwiftOpenAI CompletionsDataModel.swift
[23/64] Compiling SwiftOpenAI CompletionsOptionalParameters.swift
[24/64] Compiling SwiftOpenAI EmbeddingDataModel.swift
[25/64] Compiling SwiftOpenAI CreateImageDataModel.swift
[26/64] Compiling SwiftOpenAI ImageSize.swift
[27/64] Compiling SwiftOpenAI MessageChatGPT.swift
[28/64] Compiling SwiftOpenAI MessageChatImageInput.swift
[29/64] Compiling SwiftOpenAI CreateTranslationRequest.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:22:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:23:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:77:37: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranslationRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:10:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession)
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:22:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:54:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:60:47: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateChatCompletionsStreamRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:29:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.urlSession = URLSession(configuration: .default,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:29:54: error: cannot infer contextual base in reference to member 'default'
self.urlSession = URLSession(configuration: .default,
~^~~~~~~
[30/64] Compiling SwiftOpenAI CreateChatCompletionsImageInputRequest.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:22:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:23:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:77:37: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranslationRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:10:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession)
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:22:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:54:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:60:47: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateChatCompletionsStreamRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:29:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.urlSession = URLSession(configuration: .default,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:29:54: error: cannot infer contextual base in reference to member 'default'
self.urlSession = URLSession(configuration: .default,
~^~~~~~~
[31/64] Compiling SwiftOpenAI CreateChatCompletionsRequest.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:22:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:23:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:77:37: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranslationRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:10:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession)
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:22:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:54:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:60:47: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateChatCompletionsStreamRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:29:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.urlSession = URLSession(configuration: .default,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:29:54: error: cannot infer contextual base in reference to member 'default'
self.urlSession = URLSession(configuration: .default,
~^~~~~~~
[32/64] Compiling SwiftOpenAI ChatCompletionsStreamMapper.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:22:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:23:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:77:37: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranslationRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:10:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession)
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:22:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:54:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:60:47: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateChatCompletionsStreamRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:29:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.urlSession = URLSession(configuration: .default,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:29:54: error: cannot infer contextual base in reference to member 'default'
self.urlSession = URLSession(configuration: .default,
~^~~~~~~
[33/64] Compiling SwiftOpenAI CreateChatCompletionsStreamRequest.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:22:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:23:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:77:37: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranslationRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:10:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession)
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:22:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:54:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:60:47: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateChatCompletionsStreamRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:29:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.urlSession = URLSession(configuration: .default,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:29:54: error: cannot infer contextual base in reference to member 'default'
self.urlSession = URLSession(configuration: .default,
~^~~~~~~
[34/64] Compiling SwiftOpenAI CompletionsRequest.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:22:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:23:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:77:37: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranslationRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:10:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession)
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:22:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:54:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:60:47: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateChatCompletionsStreamRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:29:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.urlSession = URLSession(configuration: .default,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:29:54: error: cannot infer contextual base in reference to member 'default'
self.urlSession = URLSession(configuration: .default,
~^~~~~~~
[35/64] Compiling SwiftOpenAI EmbeddingsRequest.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:22:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:23:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:77:37: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranslationRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:78:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranslationRequest.swift:87:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:10:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession)
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:22:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:54:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func setURLSession(urlSession: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:60:47: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateChatCompletionsStreamRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:61:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:71:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:29:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.urlSession = URLSession(configuration: .default,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/ChatCompletions/Stream/CreateChatCompletionsStreamRequest.swift:29:54: error: cannot infer contextual base in reference to member 'default'
self.urlSession = URLSession(configuration: .default,
~^~~~~~~
[36/64] Compiling SwiftOpenAI EditImageEndpoint.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:24:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:25:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:71:39: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranscriptionRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
[37/64] Compiling SwiftOpenAI VariationImageEndpoint.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:24:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:25:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:71:39: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranscriptionRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
[38/64] Compiling SwiftOpenAI ListModelsEndpoint.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:24:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:25:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:71:39: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranscriptionRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
[39/64] Compiling SwiftOpenAI ModerationEndpoint.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:24:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:25:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:71:39: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranscriptionRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
[40/64] Compiling SwiftOpenAI OpenAIEndpoints.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:24:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:25:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:71:39: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranscriptionRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
[41/64] Compiling SwiftOpenAI CreateSpeechRequest.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:24:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:25:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:71:39: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranscriptionRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
[42/64] Compiling SwiftOpenAI CreateTranscriptionRequest.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:24:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:25:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var dataTask: URLSessionDataTask?
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:71:39: error: cannot find type 'URLSessionDataDelegate' in scope
extension CreateTranscriptionRequest: URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:72:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/OpenAI/Requests/Audio/CreateTranscriptionRequest.swift:81:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
[43/64] Compiling SwiftOpenAI MessageRoleType.swift
[44/64] Compiling SwiftOpenAI ModelDataModel.swift
[45/64] Compiling SwiftOpenAI ModerationsDataModel.swift
[46/64] Compiling SwiftOpenAI OpenAIError.swift
[47/64] Compiling SwiftOpenAI OpenAIModelType.swift
[48/64] Compiling SwiftOpenAI OpenAIBaseEnvironment.swift
[49/64] Compiling SwiftOpenAI CreateSpeechEndpoint.swift
[50/64] Compiling SwiftOpenAI CreateTranscriptionEndpoint.swift
[51/64] Compiling SwiftOpenAI CreateTranslationEndpoint.swift
[52/64] Compiling SwiftOpenAI ChatCompletionsEndpoint.swift
[53/64] Compiling SwiftOpenAI ChatCompletionsImageInputEndpoint.swift
[54/64] Compiling SwiftOpenAI CompletionsEndpoint.swift
[55/64] Compiling SwiftOpenAI EmbeddingsEndpoint.swift
[56/64] Compiling SwiftOpenAI CreateImageEndpoint.swift
[57/64] Compiling SwiftOpenAI API.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:4:35: error: cannot find type 'URLRequest' in scope
func execute(with urlRequest: URLRequest) async -> Result<Data, APIError>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:4:49: error: cannot find type 'URLRequest' in scope
func buildURLRequest(endpoint: Endpoint) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:5:39: error: cannot find type 'URLRequest' in scope
func addHeaders(urlRequest: inout URLRequest, headers: [String: String])
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:12:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:13:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: URL(string: endpoint.path)!)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:8:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(urlSession: URLSession = URLSession.shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:14:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:16:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: urlRequest)
~~~~~~~~~~ ^~~~
[58/64] Compiling SwiftOpenAI Endpoint.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:4:35: error: cannot find type 'URLRequest' in scope
func execute(with urlRequest: URLRequest) async -> Result<Data, APIError>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:4:49: error: cannot find type 'URLRequest' in scope
func buildURLRequest(endpoint: Endpoint) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:5:39: error: cannot find type 'URLRequest' in scope
func addHeaders(urlRequest: inout URLRequest, headers: [String: String])
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:12:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:13:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: URL(string: endpoint.path)!)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:8:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(urlSession: URLSession = URLSession.shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:14:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:16:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: urlRequest)
~~~~~~~~~~ ^~~~
[59/64] Compiling SwiftOpenAI Parser.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:4:35: error: cannot find type 'URLRequest' in scope
func execute(with urlRequest: URLRequest) async -> Result<Data, APIError>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:4:49: error: cannot find type 'URLRequest' in scope
func buildURLRequest(endpoint: Endpoint) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:5:39: error: cannot find type 'URLRequest' in scope
func addHeaders(urlRequest: inout URLRequest, headers: [String: String])
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:12:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:13:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: URL(string: endpoint.path)!)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:8:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(urlSession: URLSession = URLSession.shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:14:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:16:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: urlRequest)
~~~~~~~~~~ ^~~~
[60/64] Compiling SwiftOpenAI APIError.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:4:35: error: cannot find type 'URLRequest' in scope
func execute(with urlRequest: URLRequest) async -> Result<Data, APIError>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:4:49: error: cannot find type 'URLRequest' in scope
func buildURLRequest(endpoint: Endpoint) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:5:39: error: cannot find type 'URLRequest' in scope
func addHeaders(urlRequest: inout URLRequest, headers: [String: String])
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:12:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:13:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: URL(string: endpoint.path)!)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:8:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(urlSession: URLSession = URLSession.shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:14:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:16:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: urlRequest)
~~~~~~~~~~ ^~~~
[61/64] Compiling SwiftOpenAI RequestBuilder.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:4:35: error: cannot find type 'URLRequest' in scope
func execute(with urlRequest: URLRequest) async -> Result<Data, APIError>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:4:49: error: cannot find type 'URLRequest' in scope
func buildURLRequest(endpoint: Endpoint) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:5:39: error: cannot find type 'URLRequest' in scope
func addHeaders(urlRequest: inout URLRequest, headers: [String: String])
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:12:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:13:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: URL(string: endpoint.path)!)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:8:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(urlSession: URLSession = URLSession.shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:14:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:16:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: urlRequest)
~~~~~~~~~~ ^~~~
[62/64] Compiling SwiftOpenAI Requester.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:4:35: error: cannot find type 'URLRequest' in scope
func execute(with urlRequest: URLRequest) async -> Result<Data, APIError>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:4:49: error: cannot find type 'URLRequest' in scope
func buildURLRequest(endpoint: Endpoint) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:5:39: error: cannot find type 'URLRequest' in scope
func addHeaders(urlRequest: inout URLRequest, headers: [String: String])
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:12:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:13:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: URL(string: endpoint.path)!)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:8:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(urlSession: URLSession = URLSession.shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:14:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:16:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: urlRequest)
~~~~~~~~~~ ^~~~
[63/64] Compiling SwiftOpenAI BaseEnvironment.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:4:35: error: cannot find type 'URLRequest' in scope
func execute(with urlRequest: URLRequest) async -> Result<Data, APIError>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:4:49: error: cannot find type 'URLRequest' in scope
func buildURLRequest(endpoint: Endpoint) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:5:39: error: cannot find type 'URLRequest' in scope
func addHeaders(urlRequest: inout URLRequest, headers: [String: String])
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:12:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:13:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: URL(string: endpoint.path)!)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:8:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(urlSession: URLSession = URLSession.shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:14:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:16:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: urlRequest)
~~~~~~~~~~ ^~~~
[64/64] Compiling SwiftOpenAI Router.swift
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:4:35: error: cannot find type 'URLRequest' in scope
func execute(with urlRequest: URLRequest) async -> Result<Data, APIError>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:4:49: error: cannot find type 'URLRequest' in scope
func buildURLRequest(endpoint: Endpoint) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:5:39: error: cannot find type 'URLRequest' in scope
func addHeaders(urlRequest: inout URLRequest, headers: [String: String])
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(urlSession: URLSession = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:23:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:27:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/API.swift:31:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:12:56: error: cannot find type 'URLRequest' in scope
public func buildURLRequest(endpoint: Endpoint) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
public func addHeaders(urlRequest: inout URLRequest, headers: [String: String]) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/RequestBuilder.swift:13:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: URL(string: endpoint.path)!)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:8:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:10:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(urlSession: URLSession = URLSession.shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:14:42: error: cannot find type 'URLRequest' in scope
public func execute(with urlRequest: URLRequest) async -> Result<Data, APIError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftOpenAI/APIClient/Requester/Requester.swift:16:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: urlRequest)
~~~~~~~~~~ ^~~~
error: fatalError
BUILD FAILURE 5.10 linux