forked from phoenix/litellm-mirror
docs clarify vertex vs gemini
This commit is contained in:
parent
69b1bc1f1e
commit
f9ba74ef87
2 changed files with 27 additions and 4 deletions
|
@ -4,11 +4,23 @@ import TabItem from '@theme/TabItem';
|
||||||
|
|
||||||
# Gemini - Google AI Studio
|
# Gemini - Google AI Studio
|
||||||
|
|
||||||
## Pre-requisites
|
| Property | Details |
|
||||||
* `pip install -q google-generativeai`
|
|-------|-------|
|
||||||
* Get API Key - https://aistudio.google.com/
|
| Description | Google AI Studio is a fully-managed AI development platform for building and using generative AI. |
|
||||||
|
| Provider Route on LiteLLM | `gemini/` |
|
||||||
|
| Provider Doc | [Google AI Studio ↗](https://ai.google.dev/aistudio) |
|
||||||
|
| API Endpoint for Provider | https://generativelanguage.googleapis.com |
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
|
||||||
|
## API Keys
|
||||||
|
|
||||||
|
```python
|
||||||
|
import os
|
||||||
|
os.environ["GEMINI_API_KEY"] = "your-api-key"
|
||||||
|
```
|
||||||
|
|
||||||
# Gemini-Pro
|
|
||||||
## Sample Usage
|
## Sample Usage
|
||||||
```python
|
```python
|
||||||
from litellm import completion
|
from litellm import completion
|
||||||
|
|
|
@ -4,6 +4,17 @@ import TabItem from '@theme/TabItem';
|
||||||
|
|
||||||
# VertexAI [Anthropic, Gemini, Model Garden]
|
# VertexAI [Anthropic, Gemini, Model Garden]
|
||||||
|
|
||||||
|
|
||||||
|
| Property | Details |
|
||||||
|
|-------|-------|
|
||||||
|
| Description | Vertex AI is a fully-managed AI development platform for building and using generative AI. |
|
||||||
|
| Provider Route on LiteLLM | `vertex_ai/` |
|
||||||
|
| Link to Provider Doc | [Vertex AI ↗](https://cloud.google.com/vertex-ai) |
|
||||||
|
| Base URL | [https://{vertex_location}-aiplatform.googleapis.com/](https://{vertex_location}-aiplatform.googleapis.com/) |
|
||||||
|
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
|
||||||
<a target="_blank" href="https://colab.research.google.com/github/BerriAI/litellm/blob/main/cookbook/liteLLM_VertextAI_Example.ipynb">
|
<a target="_blank" href="https://colab.research.google.com/github/BerriAI/litellm/blob/main/cookbook/liteLLM_VertextAI_Example.ipynb">
|
||||||
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
|
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue