Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions FirebaseAI/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Unreleased
- [fixed] Fixed `Sendable` warnings introduced in the Xcode 26 beta. (#14947)

# 11.13.0
- [feature] Initial release of the Firebase AI Logic SDK (`FirebaseAI`). This
SDK *replaces* the previous Vertex AI in Firebase SDK (`FirebaseVertexAI`) to
Expand Down
2 changes: 1 addition & 1 deletion FirebaseAI/Sources/GenerativeAIRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Foundation

@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
protocol GenerativeAIRequest: Sendable, Encodable {
associatedtype Response: Decodable
associatedtype Response: Sendable, Decodable

var url: URL { get }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Foundation
///
/// TODO(#14451): Make this `public` and move to the `Public` directory when ready.
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
struct ImagenGCSImage {
struct ImagenGCSImage: Sendable {
/// The IANA standard MIME type of the image file; either `"image/png"` or `"image/jpeg"`.
///
/// > Note: To request a different format, set ``ImagenGenerationConfig/imageFormat`` in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extension CountTokensRequest: GenerativeAIRequest {

/// The model's response to a count tokens request.
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
public struct CountTokensResponse {
public struct CountTokensResponse: Sendable {
/// The total number of tokens in the input given to the model as a prompt.
public let totalTokens: Int

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Foundation
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
// TODO(#14451): Re-add "- ``ImagenModel/generateImages(prompt:gcsURI:)`` where `T` is
// ``ImagenGCSImage``" in the DocC above.
public struct ImagenGenerationResponse<T> {
public struct ImagenGenerationResponse<T>: Sendable where T: Sendable {
/// The images generated by Imagen; see ``ImagenInlineImage``.
///
/// > Important: The number of images generated may be fewer than the number requested if one or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Foundation

/// An image generated by Imagen, represented as inline data.
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
public struct ImagenInlineImage {
public struct ImagenInlineImage: Sendable {
/// The IANA standard MIME type of the image file; either `"image/png"` or `"image/jpeg"`.
///
/// > Note: To request a different format, set ``ImagenGenerationConfig/imageFormat`` in
Expand Down
Loading