docs: cleanup docs

This commit is contained in:
Krrish Dholakia
2024-07-22 22:59:00 -07:00
parent 770f2d80e0
commit 0935d162f6
@@ -1,4 +1,4 @@
# 👥 Team-based Routing + Logging
# 👥 Team-based Routing
## Routing
Route calls to different model groups based on the team-id
@@ -70,36 +70,3 @@ curl --location 'http://0.0.0.0:4000/v1/chat/completions' \
"user": "usha"
}'
```
## Logging / Caching
Turn on/off logging and caching for a specific team id.
**Example:**
This config would send langfuse logs to 2 different langfuse projects, based on the team id
```yaml
litellm_settings:
default_team_settings:
- team_id: my-secret-project
success_callback: ["langfuse"]
langfuse_public_key: os.environ/LANGFUSE_PUB_KEY_1 # Project 1
langfuse_secret: os.environ/LANGFUSE_PRIVATE_KEY_1 # Project 1
- team_id: ishaans-secret-project
success_callback: ["langfuse"]
langfuse_public_key: os.environ/LANGFUSE_PUB_KEY_2 # Project 2
langfuse_secret: os.environ/LANGFUSE_SECRET_2 # Project 2
```
Now, when you [generate keys](./virtual_keys.md) for this team-id
```bash
curl -X POST 'http://0.0.0.0:4000/key/generate' \
-H 'Authorization: Bearer sk-1234' \
-H 'Content-Type: application/json' \
-d '{"team_id": "ishaans-secret-project"}'
```
All requests made with these keys will log data to their team-specific logging.