Skip to content

Commit 9228d9b

Browse files
committed
Add available(watchOS, unavailable) annotations to remaining types
1 parent 166be93 commit 9228d9b

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

FirebaseAI/Sources/FirebaseAI.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ public final class FirebaseAI: Sendable {
156156
/// - systemInstruction: Instructions that direct the model to behave a certain way; currently
157157
/// only text content is supported.
158158
/// - requestOptions: Configuration parameters for sending requests to the backend.
159+
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, *)
160+
@available(watchOS, unavailable)
159161
public func liveModel(modelName: String,
160162
generationConfig: LiveGenerationConfig? = nil,
161163
tools: [Tool]? = nil,

FirebaseAI/Sources/Types/Internal/Live/AsyncWebSocket.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ private import FirebaseCoreInternal
2121
/// friendly interface for sending and consuming data from it.
2222
///
2323
/// Also surfaces a more fine-grained ``WebSocketClosedError`` for when the web socket is closed.
24+
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, *)
25+
@available(watchOS, unavailable)
2426
final class AsyncWebSocket: NSObject, @unchecked Sendable, URLSessionWebSocketDelegate {
2527
private let webSocketTask: URLSessionWebSocketTask
2628
private let stream: AsyncThrowingStream<URLSessionWebSocketTask.Message, Error>

FirebaseAI/Sources/Types/Internal/Live/BidiGenerateContentSetup.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,6 @@ struct BidiGenerateContentSetup: Encodable {
7373
}
7474
}
7575

76+
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, *)
77+
@available(watchOS, unavailable)
7678
struct BidiAudioTranscriptionConfig: Encodable {}

0 commit comments

Comments
 (0)