GenerativeBackend

class GenerativeBackend


Represents a reference to a backend for generative AI.

Summary

Public companion functions

GenerativeBackend

References the Google Developer API backend.

GenerativeBackend
vertexAI(location: String)

References the VertexAI Enterprise backend.

Public companion functions

googleAI

fun googleAI(): GenerativeBackend

References the Google Developer API backend.

vertexAI

fun vertexAI(location: String = "us-central1"): GenerativeBackend

References the VertexAI Enterprise backend.

Parameters
location: String = "us-central1"

passes a valid cloud server location, defaults to "us-central1"