Skip to content

Commit 8fecb61

Browse files
committed
Use FoundationNetworking on linux
1 parent 03b1893 commit 8fecb61

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Sources/OpenAI/Request/Handler/BaseRequestHandler.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
import EventSource
99
import Foundation
10+
#if canImport(FoundationNetworking)
11+
import FoundationNetworking
12+
#endif
1013

1114
public struct BaseRequestHandler: RequestHandler, Sendable {
1215
let urlSession: URLSession

0 commit comments

Comments
 (0)