docs clarify vertex vs gemini

This commit is contained in:
Ishaan Jaff 2024-10-29 13:14:26 +05:30
parent 69b1bc1f1e
commit f9ba74ef87
2 changed files with 27 additions and 4 deletions

View file

@ -4,11 +4,23 @@ import TabItem from '@theme/TabItem';
# Gemini - Google AI Studio
## Pre-requisites
* `pip install -q google-generativeai`
* Get API Key - https://aistudio.google.com/
| Property | Details |
|-------|-------|
| 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
```python
from litellm import completion

View file

@ -4,6 +4,17 @@ import TabItem from '@theme/TabItem';
# 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">
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
</a>