forked from phoenix/litellm-mirror
docs
This commit is contained in:
parent
585bef9539
commit
a86ec0f916
2 changed files with 13 additions and 2 deletions
|
@ -10,4 +10,15 @@
|
|||
|
||||
| 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")
|
||||
```
|
||||
|
|
|
@ -41,7 +41,7 @@ const sidebars = {
|
|||
},
|
||||
{
|
||||
type: "category",
|
||||
label: "Embedding()",
|
||||
label: "Embedding() & Moderation()",
|
||||
items: ["embedding/supported_embedding"],
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue