Plugin for LLM adding support for Google Cloud Vertex AI
Project description
llm-vertex
Plugin for LLM adding support for Google Cloud Vertex AI.
Please note that this plugin is for Vertex AI specifically, not Google AI Studio.
For Gemini support using AI Studio, please see llm-gemini instead.
Supported models:
- gemini-3.1-pro-preview
- gemini-3-pro-preview
- gemini-3-flash-preview
- gemini-2.5-pro
- gemini-2.5-flash
- gemini-2.5-flash-lite
- gemini-2.0-flash
- gemini-2.0-flash-lite
Installation
See Installing Plugins for detailed instructions.
Method 1: Use llm
llm install llm-vertex
Method 2: Use pip
pip install llm-vertex
Use
First, authenticate using gcloud:
gcloud auth application-default login
Export two environment variables for the GCP Project and location you want to use:
export VERTEX_PROJECT_ID=gcp-project-id VERTEX_LOCATION=us-east1
Run llm and specify one of the provided models:
❯ llm -m vertex-gemini-2.5-flash "What's one clever name for a pet pelican?"
"Gulliver" would be a clever name for a pet pelican, referencing both its large gullet and its potential for long journeys! 🦜
Development
Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate
Install the package in development mode with test dependencies:
pip install -e '.[dev]'
Run the tests:
python -m pytest
The tests use mocking to avoid requiring actual Google Cloud credentials during development, but do not really test actual functionality outside of making sure the plugin is installed and can be used.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_vertex-0.2.4.tar.gz.
File metadata
- Download URL: llm_vertex-0.2.4.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0fd77dd3042a3a72e462f79cd63e935135a5f8dfc08033b9b01bee03ce0c504
|
|
| MD5 |
cd30147cacc748af42fdc1ae30085a31
|
|
| BLAKE2b-256 |
f967a0eb6573afaacb67947cccdcf58416f851a5e62ca44af135bcfbf73008d3
|
Provenance
The following attestation bundles were made for llm_vertex-0.2.4.tar.gz:
Publisher:
publish.yml on justyns/llm-vertex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_vertex-0.2.4.tar.gz -
Subject digest:
d0fd77dd3042a3a72e462f79cd63e935135a5f8dfc08033b9b01bee03ce0c504 - Sigstore transparency entry: 976268035
- Sigstore integration time:
-
Permalink:
justyns/llm-vertex@81ce615e8ca7e70669c44d092e6f0974f6bda029 -
Branch / Tag:
refs/tags/0.2.4 - Owner: https://github.com/justyns
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@81ce615e8ca7e70669c44d092e6f0974f6bda029 -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_vertex-0.2.4-py3-none-any.whl.
File metadata
- Download URL: llm_vertex-0.2.4-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e23531b03bac6940fdd997f10010cbfdc665b919efdd6586a9f1fca55e656811
|
|
| MD5 |
493d9f5883417e97d8578aaf03b54a65
|
|
| BLAKE2b-256 |
1108e9e5fc70012269ad9e7ba6f175e79efbfa881b38420d168d3c9b6573fac4
|
Provenance
The following attestation bundles were made for llm_vertex-0.2.4-py3-none-any.whl:
Publisher:
publish.yml on justyns/llm-vertex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_vertex-0.2.4-py3-none-any.whl -
Subject digest:
e23531b03bac6940fdd997f10010cbfdc665b919efdd6586a9f1fca55e656811 - Sigstore transparency entry: 976268038
- Sigstore integration time:
-
Permalink:
justyns/llm-vertex@81ce615e8ca7e70669c44d092e6f0974f6bda029 -
Branch / Tag:
refs/tags/0.2.4 - Owner: https://github.com/justyns
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@81ce615e8ca7e70669c44d092e6f0974f6bda029 -
Trigger Event:
release
-
Statement type: