Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Vertex AI] Add FirebaseVertexAIPreview SPM target for preview APIs #14336

Draft
wants to merge 39 commits into
base: vertex-imagen
Choose a base branch
from

Conversation

andrewheard
Copy link
Contributor

@andrewheard andrewheard commented Jan 10, 2025

Added a FirebaseVertexAIPreview SPM target for Public Preview API surfaces. This clarifies that ImagenModel is in Public Preview. This is an alternative approach to #14334.

Before:

import FirebaseVertexAI

let model = VertexAI.vertexAI().imagenModel("imagen-3.0-generate-001")

After:

import FirebaseVertexAI
import FirebaseVertexAIPreview

let model = VertexAI.vertexAI().imagenModel("imagen-3.0-generate-001")

Note: This is the only way to obtain an instance of ImagenModel.

Commit d5c8b32 (#14336) has the relevant example code since this PR is out of date.

#14221
#no-changelog

# Conflicts:
#	FirebaseVertexAI/Sources/VertexAI.swift
#	FirebaseVertexAI/Tests/TestApp/VertexAITestApp.xcodeproj/project.pbxproj
#	Firestore/core/src/nanopb/byte_string.cc
#	Firestore/core/test/unit/nanopb/byte_string_test.cc
#	Firestore/core/test/unit/util/executor_test.cc
#	Firestore/core/test/unit/util/schedule_test.cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants