Skip to content

Google Vertex AI

VariableRequired
GOOGLE_API_KEYYes
GOOGLE_CLOUD_PROJECTYes
GOOGLE_CLOUD_LOCATIONYes
Terminal window
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model": "vertex_ai/gemini-1.5-pro", "messages": [{"role": "user", "content": "Hello!"}]}'
use llmg_providers::vertex_ai::VertexAiClient;
use llmg_core::provider::Provider;
let client = VertexAiClient::from_env()?;
  • Chat completions
  • Embeddings
  • Gemini model support