Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions docs/my-website/docs/providers/vertex.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ model_list:
model: vertex_ai/gemini-2.5-pro
vertex_project: "project-id"
vertex_location: "us-central1"
vertex_credentials: "/path/to/service_account.json" # [OPTIONAL] Do this OR `!gcloud auth application-default login` - run this to add vertex credentials to your env
vertex_credentials: "/path/to/service_account.json" # [OPTIONAL] Use this OR run `gcloud auth application-default login` to add Vertex credentials to your environment
```
or
For a custom Vertex AI model that follows the Gemini API specification:
```yaml
model_list:
- model_name: gemini-pro
- model_name: gemini-pro
litellm_params:
model: vertex_ai/gemini-1.5-pro
litellm_credential_name: vertex-global
Expand All @@ -210,6 +210,23 @@ model_list:
provider: Vertex
```

**Custom Model Configuration**

For custom models that follow the Gemini API specification:

```yaml
model_list:
- model_name: codenamecodename
litellm_params:
model: vertex_ai/codenamecodename
litellm_credential_name: vertex-global
vertex_project: level-district-390620
vertex_location: global
base_model: gemini
model_info:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is wrong. Model info should not be nested inside litellm_params.

What is base_model?

provider: Vertex
```

2. Start Proxy

```
Expand Down Expand Up @@ -280,7 +297,7 @@ model_list:
model: vertex_ai/gemini-2.5-pro
vertex_project: "project-id"
vertex_location: "us-central1"
vertex_credentials: "/path/to/service_account.json" # [OPTIONAL] Do this OR `!gcloud auth application-default login` - run this to add vertex credentials to your env
vertex_credentials: "/path/to/service_account.json" # [OPTIONAL] Use this OR run `gcloud auth application-default login` to add Vertex credentials to your environment
```

2. Start Proxy
Expand Down
Loading