From f9ba74ef87ba66424332cd15b6c05e5700a0f850 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 29 Oct 2024 13:14:26 +0530 Subject: [PATCH] docs clarify vertex vs gemini --- docs/my-website/docs/providers/gemini.md | 20 ++++++++++++++++---- docs/my-website/docs/providers/vertex.md | 11 +++++++++++ 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/docs/my-website/docs/providers/gemini.md b/docs/my-website/docs/providers/gemini.md index 8a8d2a004..da83448c0 100644 --- a/docs/my-website/docs/providers/gemini.md +++ b/docs/my-website/docs/providers/gemini.md @@ -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 | + +
+ + +## API Keys + +```python +import os +os.environ["GEMINI_API_KEY"] = "your-api-key" +``` -# Gemini-Pro ## Sample Usage ```python from litellm import completion diff --git a/docs/my-website/docs/providers/vertex.md b/docs/my-website/docs/providers/vertex.md index 852599cbe..b69e8ee56 100644 --- a/docs/my-website/docs/providers/vertex.md +++ b/docs/my-website/docs/providers/vertex.md @@ -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/) | + +
+
+ Open In Colab