forked from phoenix/litellm-mirror
Update README.md - key management
This commit is contained in:
parent
f8180c351f
commit
6bb314c379
1 changed files with 9 additions and 0 deletions
|
@ -144,6 +144,7 @@ print(response)
|
|||
Track Spend, Set budgets and create virtual keys for the proxy
|
||||
`POST /key/generate`
|
||||
|
||||
### Request
|
||||
```shell
|
||||
curl 'http://0.0.0.0:8000/key/generate' \
|
||||
--header 'Authorization: Bearer sk-1234' \
|
||||
|
@ -151,6 +152,14 @@ curl 'http://0.0.0.0:8000/key/generate' \
|
|||
--data-raw '{"models": ["gpt-3.5-turbo", "gpt-4", "claude-2"], "duration": "20m","metadata": {"user": "ishaan@berri.ai", "team": "core-infra"}}'
|
||||
```
|
||||
|
||||
### Expect Response
|
||||
```shell
|
||||
{
|
||||
"key": "sk-kdEXbIqZRwEeEiHwdg7sFA", # Bearer token
|
||||
"expires": "2023-11-19T01:38:25.838000+00:00" # datetime object
|
||||
}
|
||||
```
|
||||
|
||||
### [Beta] Proxy UI
|
||||
|
||||
A simple UI to add new models and let your users create keys.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue