mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
docs: clarify x-litellm-tags header format is comma-separated string
HTTP headers are always strings, not arrays. Remove misleading array format documentation for the header parameter. Co-authored-by: Ishaan Jaff <ishaan-jaff@users.noreply.github.com>
This commit is contained in:
parent
d5acee1b15
commit
eb5214ee76
1 changed files with 2 additions and 4 deletions
|
|
@ -50,7 +50,7 @@ curl -X POST 'http://0.0.0.0:4000/chat/completions' \
|
|||
|
||||
### Option 2: Use `x-litellm-tags` Header
|
||||
|
||||
Pass tags dynamically via the `x-litellm-tags` header:
|
||||
Pass tags dynamically via the `x-litellm-tags` header as a comma-separated string:
|
||||
|
||||
```bash
|
||||
curl -X POST 'http://0.0.0.0:4000/chat/completions' \
|
||||
|
|
@ -63,9 +63,7 @@ curl -X POST 'http://0.0.0.0:4000/chat/completions' \
|
|||
}'
|
||||
```
|
||||
|
||||
The header accepts:
|
||||
- **Comma-separated string**: `"tag1,tag2,tag3"` (spaces are trimmed)
|
||||
- **Array of strings**: `["tag1", "tag2", "tag3"]`
|
||||
Format: Comma-separated string (spaces are automatically trimmed): `"tag1,tag2,tag3"`
|
||||
|
||||
### Option 3: Use Request Body `tags`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue