Plugin for LLM adding support for Google Cloud Vertex AI
Project description
llm-vertex-fork
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-flash-preview
- gemini-3-pro-preview
- gemini-2.5-flash
- gemini-2.5-pro
- gemini-2.0-flash-lite
- gemini-2.0-flash
- gemini-1.5-pro
- gemini-1.5-flash
Installation
See Installing Plugins for detailed instructions.
Method 1: Use llm
$ llm install llm-vertex-fork
Method 2: Use pip
$ pip install llm-vertex-fork
Method 3: Manual
$ git clone https://github.com/avoidik/llm-vertex
$ llm install -e 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-pro "What's one clever name for a pet pelican?"
**Bill Murray.**
It's clever because it's a pun on the pelican's most prominent feature (its **bill**) and evokes the actor's beloved, slightly goofy, and deadpan persona, which fits a pelican perfectly.
Or, in a chat mode:
$ llm chat -m vertex-gemini-2.5-pro
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
Release history Release notifications | RSS feed
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_fork-0.2.5.tar.gz.
File metadata
- Download URL: llm_vertex_fork-0.2.5.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06edbc9a13c7efe388c8bc41d09ddd90cf1d04472e5035e19724f8d4823debbf
|
|
| MD5 |
e562e30e88df4271dd87811b02f7e3be
|
|
| BLAKE2b-256 |
f90fd3743092b83e317dfc00fa011b6abe486db6cb31bc07a828403a8347df60
|
Provenance
The following attestation bundles were made for llm_vertex_fork-0.2.5.tar.gz:
Publisher:
publish.yml on avoidik/llm-vertex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_vertex_fork-0.2.5.tar.gz -
Subject digest:
06edbc9a13c7efe388c8bc41d09ddd90cf1d04472e5035e19724f8d4823debbf - Sigstore transparency entry: 771194719
- Sigstore integration time:
-
Permalink:
avoidik/llm-vertex@3c42f2deeecbac11092bb8c82cb92f16351f2a0c -
Branch / Tag:
refs/tags/0.2.5 - Owner: https://github.com/avoidik
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3c42f2deeecbac11092bb8c82cb92f16351f2a0c -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_vertex_fork-0.2.5-py3-none-any.whl.
File metadata
- Download URL: llm_vertex_fork-0.2.5-py3-none-any.whl
- Upload date:
- Size: 7.6 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 |
d7e59d24c5c1947edc735eb39a957e2b6452c3dca4299634ca6beb4d21f167ee
|
|
| MD5 |
870bc0ec5658a5eb9e37eeb5bc1715b6
|
|
| BLAKE2b-256 |
9d0a6355089f3ddef8ded6406d746bd1d6a0793457c5ead266982c2c5b9eae5f
|
Provenance
The following attestation bundles were made for llm_vertex_fork-0.2.5-py3-none-any.whl:
Publisher:
publish.yml on avoidik/llm-vertex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_vertex_fork-0.2.5-py3-none-any.whl -
Subject digest:
d7e59d24c5c1947edc735eb39a957e2b6452c3dca4299634ca6beb4d21f167ee - Sigstore transparency entry: 771194723
- Sigstore integration time:
-
Permalink:
avoidik/llm-vertex@3c42f2deeecbac11092bb8c82cb92f16351f2a0c -
Branch / Tag:
refs/tags/0.2.5 - Owner: https://github.com/avoidik
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3c42f2deeecbac11092bb8c82cb92f16351f2a0c -
Trigger Event:
release
-
Statement type: