Skip to content

Commit

Permalink
doc fix Turn on / off caching per Key. (#6297)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff authored Oct 18, 2024
1 parent 610974b commit e35fc32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/my-website/docs/proxy/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ curl http://localhost:4000/v1/chat/completions \
curl -X POST 'http://0.0.0.0:4000/key/generate' \
-H 'Authorization: Bearer sk-1234' \
-H 'Content-Type: application/json' \
-D '{
-d '{
"user_id": "222",
"metadata": {
"cache": {
Expand All @@ -743,7 +743,7 @@ curl -X POST 'http://0.0.0.0:4000/key/generate' \
curl -X POST 'http://localhost:4000/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <YOUR_NEW_KEY>' \
-D '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "bom dia"}]}'
-d '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "bom dia"}]}'
```

### Deleting Cache Keys - `/cache/delete`
Expand Down

0 comments on commit e35fc32

Please sign in to comment.