Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

docs(moderation.md): fix moderation quick start docs

Krrish Dholakia532ebf43d072
diff --git a/docs/my-website/docs/moderation.md b/docs/my-website/docs/moderation.md
index f9c2810bc8a..1f67b0a7543 100644
--- a/docs/my-website/docs/moderation.md
+++ b/docs/my-website/docs/moderation.md
@@ -22,10 +22,19 @@ response = moderation(
For `/moderations` endpoint, there is **no need to specify `model` in the request or on the litellm config.yaml**
-Start litellm proxy server
+1. Setup config.yaml
+```yaml
+model_list:
+ - model_name: text-moderation-stable
+ litellm_params:
+ model: openai/omni-moderation-latest
```
-litellm
+
+2. Start litellm proxy server
+
+```
+litellm --config /path/to/config.yaml
```
@@ -41,7 +50,7 @@ client = OpenAI(api_key="<proxy-api-key>", base_url="http://0.0.0.0:4000")
response = client.moderations.create(
input="hello from litellm",
- model="text-moderation-stable" # optional, defaults to `omni-moderation-latest`
+ model="text-moderation-stable"
)
print(response)