André Ferreira
50eb12ff5b
test: ✅ Fix tests with latest changes
2024-06-03 18:12:00 +02:00
André Ferreira
480de19113
test: ✅ Fix issues with unit tests
2024-05-28 12:09:37 +02:00
reibs
ed479c3c93
update tests
2024-03-25 16:56:07 -07:00
Nikolay Petrov
7d0595a692
added calculate_cost_by_tokens - the case when token count is already available
2024-02-01 17:42:16 +07:00
reibs
47679aeb40
update llamaindex tests
2024-01-30 21:42:38 -08:00
reibs
f38877f450
Updated tests. Convert floats to decimals
2024-01-30 21:24:04 -08:00
reibs
b62bc1fb6c
remove TPUs
2024-01-30 19:35:32 -08:00
reibs
d8deebc9bc
update tests
2024-01-27 14:02:53 +09:00
reibs
cdc760acf0
update test costs
2024-01-27 13:48:29 +09:00
reibs
5d5f6dc7d1
fixed unbound vals
2024-01-03 15:16:32 -08:00
reibs
16f77b2f05
removed unused file
2023-12-25 23:04:27 -08:00
reibs
ca694e4dc9
update docstrings
2023-12-25 23:00:14 -08:00
reibs
bce6f52b95
update tests and flake
2023-12-25 22:50:36 -08:00
Trisha Pan
0ab4b1ae53
Merge branch 'main' into user-friendly
2023-12-15 18:46:05 -05:00
trisha
e14685bfc4
flake8 updates
2023-12-15 17:38:09 -06:00
Trisha Pan
e892d3d2be
improve calculate_cost, consolidate constants, add example to readme
...
* fix calculate cost fxn, consolidate constants, fix max prompt completion limits
* fix model name, update remaining prompt limits
* | only for Python 2.10+, but our dep only insists on 2.7+
* add usage examples
* add conversion constants for USD and cents
* add messages example to readme
2023-12-15 18:02:25 -05:00
trisha
c6f2d8506f
fix model name, update remaining prompt limits
2023-12-15 12:51:29 -06:00
trisha
23269053de
fix calculate cost fxn, consolidate constants, fix max prompt completion limits
2023-12-15 01:18:49 -06:00
trisha
15bf7ee1c6
Add tests for invalid models and empty inputs, remove case-sensitivity of model names
2023-12-12 13:25:00 -06:00
trisha
8e9346cdde
Update package so can locally import
2023-12-08 14:49:25 -06:00
trisha
24fe1db983
Add .py to end of file
2023-12-05 16:51:02 -06:00
trisha
4a236a1088
Correct tests
2023-12-05 16:50:28 -06:00
trisha
07e91ec47d
Spelling
2023-12-05 14:49:07 -06:00
trisha
89ef14a44b
Refactor test inputs
2023-12-05 14:21:36 -06:00
reibs
95d97e7f4c
added tests
2023-12-03 20:19:25 -06:00