doc fix Turn on / off caching per Key. (#6297)

This commit is contained in:
Ishaan Jaff 2024-10-18 15:43:04 +05:30 committed by GitHub
parent 610974b4fc
commit e35fc3203e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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": {
@ -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`