# Class LittleGhost::Providers::VertexAI

Documentation version: Edge

Canonical HTML: https://littleghostai.org/docs/LittleGhost/Providers/VertexAI.html

Connects a Model to Gemini models hosted by Google Vertex AI.

It sends the same request content as the Gemini adapter to the configured
Google Cloud project and location. A trusted credential resolver supplies each
access token. Cancellation, deadlines, normalized streaming events, and
ProviderError behavior match Providers::Gemini.

## Inheritance

`LittleGhost::Providers::VertexAI < LittleGhost::Providers::Gemini`

## Class methods

<a id="method-c-new"></a>
### `.new`

```ruby
.new(model:, project:, location: "global", access_token: nil, credential_resolver: nil,
        base_url: nil, **arguments)
```

Creates a Vertex AI client for a Google Cloud `project` and `location`.
