tokencost 0.0.6
tokencost: ^0.0.6 copied to clipboard
Clientside token counting + price estimation for LLM apps and AI agents ported to Dart from Python package at https://github.com/AgentOps-AI/tokencost.
0.0.6 #
- Update to latest changes in https://github.com/AgentOps-AI/tokencost/, except support for LlamaIndex callbacks
- Use LiteLLMs cost dictionary from https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
- Add new pricing models as of 2024-01-26:
- Including two new OpenAI embedding models:
text-embedding-3-small
, andtext-embedding-3-large
- New aliases
gpt-3.5-turbo
,gpt-4
, andgpt-4-turbo-preview
- An update of GPT-4 and GPT-3.5 prices
- Included a lot of other LLMs, proprietary and open source
- Including two new OpenAI embedding models:
0.0.5 #
- Improve README.md and pubspec.yaml
0.0.4 #
- Add link to https://github.com/AgentOps-AI/tokencost in README.md
0.0.3 #
- Add platforms in pubspec.yaml
0.0.2 #
- Initial release of tokencost, full port as a Dart package of AgentOps-AI/tokencost under MIT license.