VertexAIConfig

org.llm4s.llmconnect.config.VertexAIConfig
See theVertexAIConfig companion object
case class VertexAIConfig(projectId: String, location: String, model: String, credentialFilePath: Option[String], contextWindow: Int, reserveCompletion: Int) extends ProviderConfig

Configuration for Google Cloud Vertex AI.

Uses the Gemini-compatible REST format (aiplatform.googleapis.com) with OAuth2 bearer-token authentication via Application Default Credentials (ADC).

Value parameters

contextWindow

Maximum token capacity for prompt + completion combined.

credentialFilePath

Optional path to a Google JSON credential file. Falls back to GOOGLE_APPLICATION_CREDENTIALS env, then ~/.config/gcloud/application_default_credentials.json, then the GCE metadata server.

location

GCP region, e.g. "us-central1".

model

Model identifier, e.g. "gemini-2.0-flash".

projectId

GCP project ID that owns the Vertex AI resources.

reserveCompletion

Tokens reserved for the completion response.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def computedBaseUrl: String

Base URL derived from the location, e.g. "https://us-central1-aiplatform.googleapis.com/v1".

Base URL derived from the location, e.g. "https://us-central1-aiplatform.googleapis.com/v1".

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

override val provider: ProviderKind