-
Notifications
You must be signed in to change notification settings - Fork 94
feat: new refresh_prices method for synchronous data fetching
#109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
aa910e5
new `refresh_prices` for sync token update
dot-agi 52d1953
update script to use `refresh_prices` method
dot-agi e0a2766
remove `llama-index` based code
dot-agi 135af93
remove `llama-index` based code
dot-agi 17b3c5e
add comment explaining the regex pattern matching
dot-agi abbe54a
remove duplicate imports
dot-agi c62876f
remove more duplicate imports
dot-agi 8de86d2
use latest tach version
dot-agi 90c675a
use `tach==0.6.9`
dot-agi 5590ade
make this version `0.1.21`
dot-agi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,14 +10,15 @@ tokencost = ["model_prices.json"] | |
|
|
||
| [project] | ||
| name = "tokencost" | ||
| version = "0.1.20" | ||
| version = "0.1.21" | ||
| authors = [ | ||
| { name = "Trisha Pan", email = "[email protected]" }, | ||
| { name = "Alex Reibman", email = "[email protected]" }, | ||
| { name = "Pratyush Shukla", email = "[email protected]" }, | ||
| ] | ||
| description = "To calculate token and translated USD cost of string and message calls to OpenAI, for example when used by AI agents" | ||
| readme = "README.md" | ||
| requires-python = ">=3.7" | ||
| requires-python = ">=3.10" | ||
| classifiers = [ | ||
| "Programming Language :: Python :: 3", | ||
| "License :: OSI Approved :: MIT License", | ||
|
|
@@ -34,13 +35,10 @@ dev = [ | |
| "pytest>=7.4.4", | ||
| "flake8>=3.1.0", | ||
| "coverage[toml]>=7.4.0", | ||
| "tach==0.6.9", | ||
| "tach>=0.6.9", | ||
| "tabulate>=0.9.0", | ||
| "pandas>=2.1.0", | ||
| ] | ||
| llama-index = [ | ||
| "llama-index>=0.10.23" | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/AgentOps-AI/tokencost" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.