Backend
public struct BackendRepresents available backend APIs for the Firebase AI SDK.
-
Initializes a
Backendconfigured for the Gemini API in Vertex AI.Declaration
Swift
public static func vertexAI(location: String = "us-central1") -> BackendParameters
locationThe region identifier, defaulting to
us-central1; see Vertex AI locations for a list of supported locations. -
Initializes a
Backendconfigured for the Google Developer API.Declaration
Swift
public static func googleAI() -> Backend