Skip to content

Commit 86c585f

Browse files
authored
Update README.md
1 parent d5c6abf commit 86c585f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="https://github.com/AgentOps-AI/tokencost/blob/c6c29613ec1131e72a27525de3aa5af8966fb6af/tokencost.png" height="300" alt="Tokencost" />
2+
<img src="https://raw.githubusercontent.com/AgentOps-AI/tokencost/main/tokencost.png" height="300" alt="Tokencost" />
33
</p>
44

55
<p align="center">
@@ -115,7 +115,7 @@ print(count_string_tokens(prompt="Hello world", model="gpt-3.5-turbo"))
115115
Units denominated in USD. All prices can be located in `model_prices.json`.
116116

117117

118-
* Prices last updated Jan 30, 2024 from: https://openai.com/pricing and https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
118+
* Prices last updated Jan 30, 2024 from [LiteLLM's cost dictionary](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json)
119119

120120
| Model Name | Prompt Cost (USD) | Completion Cost (USD) | Max Prompt Tokens | Max Output Tokens |
121121
|:--------------------------------------------------------------------------------------------|:--------------------|:------------------------|:--------------------|--------------------:|
@@ -499,6 +499,7 @@ Units denominated in USD. All prices can be located in `model_prices.json`.
499499

500500
### Callback handlers
501501
You may also calculate token costs in LLM wrapper/framework libraries using callbacks.
502+
502503
#### LlamaIndex
503504
```sh
504505
pip install `'tokencost[llama-index]'`

0 commit comments

Comments
 (0)