mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
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:
parent
298912bd38
commit
0942a9d51d
1 changed files with 6 additions and 6 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue