mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
docs
This commit is contained in:
parent
53aba49aa0
commit
939ea5d936
1 changed files with 1 additions and 5 deletions
|
|
@ -1,11 +1,8 @@
|
|||
# get context window & cost per token
|
||||
|
||||
For every LLM LiteLLM allows you to:
|
||||
* Get model context window
|
||||
* Get cost per token
|
||||
100+ LLMs supported: See full list [here](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json)
|
||||
|
||||
## using api.litellm.ai
|
||||
Usage
|
||||
```shell
|
||||
curl 'https://api.litellm.ai/get_max_tokens?model=claude-2'
|
||||
```
|
||||
|
|
@ -21,7 +18,6 @@ curl 'https://api.litellm.ai/get_max_tokens?model=claude-2'
|
|||
```
|
||||
|
||||
## using the litellm python package
|
||||
Usage
|
||||
```python
|
||||
import litellm
|
||||
model_data = litellm.model_cost["gpt-4"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue