mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
docs: Fix import
This commit is contained in:
parent
ab60f071ff
commit
c550357199
3 changed files with 5 additions and 5 deletions
|
|
@ -6,7 +6,7 @@
|
|||
# Gemini-Pro
|
||||
## Sample Usage
|
||||
```python
|
||||
import litellm
|
||||
from litellm import completion
|
||||
import os
|
||||
|
||||
os.environ['GEMINI_API_KEY'] = ""
|
||||
|
|
@ -24,7 +24,7 @@ LiteLLM Supports the following image types passed in `url`
|
|||
## Sample Usage
|
||||
```python
|
||||
import os
|
||||
import litellm
|
||||
import litellm
|
||||
from dotenv import load_dotenv
|
||||
|
||||
# Load the environment variables from .env file
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
## Sample Usage
|
||||
```python
|
||||
import litellm
|
||||
from litellm import completion
|
||||
import os
|
||||
|
||||
os.environ['PALM_API_KEY'] = ""
|
||||
|
|
@ -17,7 +17,7 @@ response = completion(
|
|||
|
||||
## Sample Usage - Streaming
|
||||
```python
|
||||
import litellm
|
||||
from litellm import completion
|
||||
import os
|
||||
|
||||
os.environ['PALM_API_KEY'] = ""
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import litellm
|
|||
litellm.vertex_project = "hardy-device-38811" # Your Project ID
|
||||
litellm.vertex_location = "us-central1" # proj location
|
||||
|
||||
response = completion(model="gemini-pro", messages=[{"role": "user", "content": "write code for saying hi from LiteLLM"}])
|
||||
response = litellm.completion(model="gemini-pro", messages=[{"role": "user", "content": "write code for saying hi from LiteLLM"}])
|
||||
```
|
||||
|
||||
## Set Vertex Project & Vertex Location
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue