-
Notifications
You must be signed in to change notification settings - Fork 65
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
[Cost] Custom input/output/etc cost that user can specify from our curator interface #569
Comments
It would be great to have this through backend_params! Thanks! @kartik4949 please provide insight on the backend implementation of this since you were looking at registering new model costs previously |
Thanks, Example usage: poet = Poet(model_name="gpt-4o-mini", backend_params={"in_mtok_cost": 1000000, "out_mtok_cost": 1000000}) I did a simple test from main branch (overriding the cost of GPT-4o-mini, but right now, it doesn't return the cost that uses the user-specified cost. ![]() Selected logs included here
TL;DR is that the model cost from online_status_tracker updates the manual cost, but base_online_request_processor (openai online) doesn't seem to use the updated manual cost? haven't test the other models / providers yet |
@CharlieJCJ Thanks for flagging, it was latest litellm version bug, I fixed it in cost revamp pr. |
one way to do it is through backend_params, or we can create a separate field for specifying cost-related config.
The text was updated successfully, but these errors were encountered: