Fix example commands in reliability.md (#10894)

-D is incorrect and dumps the headers.
The correct flag is -d which sets it as data
This commit is contained in:
Will Chen 2025-05-16 13:21:34 -07:00 committed by GitHub
parent 298912bd38
commit 0942a9d51d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,7 +117,7 @@ response = router.completion(
curl -X POST 'http://0.0.0.0:4000/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer sk-1234' \
-D '{
-d '{
"model": "my-bad-model",
"messages": [
{
@ -628,7 +628,7 @@ litellm_settings:
curl -X POST 'http://0.0.0.0:4000/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer sk-1234' \
-D '{
-d '{
"model": "gpt-4",
"messages": [
{
@ -655,7 +655,7 @@ Check if your fallbacks are working as expected.
curl -X POST 'http://0.0.0.0:4000/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer sk-1234' \
-D '{
-d '{
"model": "my-bad-model",
"messages": [
{
@ -674,7 +674,7 @@ curl -X POST 'http://0.0.0.0:4000/chat/completions' \
curl -X POST 'http://0.0.0.0:4000/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer sk-1234' \
-D '{
-d '{
"model": "my-bad-model",
"messages": [
{
@ -693,7 +693,7 @@ curl -X POST 'http://0.0.0.0:4000/chat/completions' \
curl -X POST 'http://0.0.0.0:4000/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer sk-1234' \
-D '{
-d '{
"model": "my-bad-model",
"messages": [
{
@ -1050,4 +1050,4 @@ curl -L -X POST 'http://0.0.0.0:4000/key/generate' \
```
</TabItem>
</Tabs>
</Tabs>