This commit is contained in:
ishaan-jaff 2023-09-19 21:43:37 -07:00
parent 585bef9539
commit a86ec0f916
2 changed files with 13 additions and 2 deletions

View file

@ -11,3 +11,14 @@
| Model Name | Function Call | Required OS Variables | | Model Name | Function Call | Required OS Variables |
|----------------------|---------------------------------------------|--------------------------------------| |----------------------|---------------------------------------------|--------------------------------------|
| text-embedding-ada-002 | `embedding('embedding-model-deployment', input=input, custom_llm_provider="azure")` | `os.environ['AZURE_API_KEY']`,`os.environ['AZURE_API_BASE']`,`os.environ['AZURE_API_VERSION']` | | text-embedding-ada-002 | `embedding('embedding-model-deployment', input=input, custom_llm_provider="azure")` | `os.environ['AZURE_API_KEY']`,`os.environ['AZURE_API_BASE']`,`os.environ['AZURE_API_VERSION']` |
# Moderation
LiteLLM supports the moderation endpoint for OpenAI
## Usage
```python
import os
from litellm import moderation
os.environ['OPENAI_API_KEY'] = ""
response = moderation(input="i'm ishaan cto of litellm")
```

View file

@ -41,7 +41,7 @@ const sidebars = {
}, },
{ {
type: "category", type: "category",
label: "Embedding()", label: "Embedding() & Moderation()",
items: ["embedding/supported_embedding"], items: ["embedding/supported_embedding"],
}, },
{ {