mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
docs tag management
This commit is contained in:
parent
54e7b1b7f6
commit
ddab2837a0
5 changed files with 34 additions and 0 deletions
30
docs/my-website/docs/tutorials/tag_management.md
Normal file
30
docs/my-website/docs/tutorials/tag_management.md
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
import Image from '@theme/IdealImage';
|
||||||
|
|
||||||
|
# Routing based on request metadata
|
||||||
|
|
||||||
|
Create routing rules based on request metadata.
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
Add the following to your litellm proxy config yaml file.
|
||||||
|
```yaml
|
||||||
|
router_settings:
|
||||||
|
enable_tag_filtering: True # 👈 Key Change
|
||||||
|
```
|
||||||
|
|
||||||
|
## 1. Create a tag
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## 2. Test Tag Routing
|
||||||
|
|
||||||
|
### 2.1 Invalid model
|
||||||
|
|
||||||
|
<Image img={require('../../img/tag_invalid.png')} style={{ width: '800px', height: 'auto' }} />
|
||||||
|
|
||||||
|
### 2.2 Valid model
|
||||||
|
|
||||||
|
<Image img={require('../../img/tag_valid.png')} style={{ width: '800px', height: 'auto' }} />
|
||||||
|
|
||||||
|
|
||||||
|
|
BIN
docs/my-website/img/tag_invalid.png
Normal file
BIN
docs/my-website/img/tag_invalid.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 237 KiB |
BIN
docs/my-website/img/tag_valid.png
Normal file
BIN
docs/my-website/img/tag_valid.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 319 KiB |
|
@ -444,6 +444,7 @@ const sidebars = {
|
||||||
items: [
|
items: [
|
||||||
"tutorials/openweb_ui",
|
"tutorials/openweb_ui",
|
||||||
"tutorials/msft_sso",
|
"tutorials/msft_sso",
|
||||||
|
"tutorials/tag_management",
|
||||||
'tutorials/litellm_proxy_aporia',
|
'tutorials/litellm_proxy_aporia',
|
||||||
{
|
{
|
||||||
type: "category",
|
type: "category",
|
||||||
|
|
|
@ -19,3 +19,6 @@ litellm_settings:
|
||||||
success_callback: ["langfuse", "s3"]
|
success_callback: ["langfuse", "s3"]
|
||||||
langfuse_secret: secret-workflows-key
|
langfuse_secret: secret-workflows-key
|
||||||
langfuse_public_key: public-workflows-key
|
langfuse_public_key: public-workflows-key
|
||||||
|
|
||||||
|
router_settings:
|
||||||
|
enable_tag_filtering: True # 👈 Key Change
|
Loading…
Add table
Add a link
Reference in a new issue