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_CREDENTIALSenv, 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 Serializabletrait Producttrait Equalstrait ProviderConfigclass Objecttrait Matchableclass Any
Members list
In this article