AgentOps-AI / tokencost

Easy token price estimates for 400+ LLMs. TokenOps.
https://agentops.ai
MIT License
1.46k stars 59 forks source link

OpenAI o1 pricing #74

Open squinn1 opened 1 month ago

squinn1 commented 1 month ago

Hi, Can we get openai o1 pricing added to this package please?

williambrach commented 1 month ago

it would be super nice!

williambrach commented 1 month ago

@squinn1 I took a quick look into code and I assume we just need to update this file https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json with adding o1-preview and o1-mini. Do you wanna open PR or should I?

squinn1 commented 1 month ago

Hi @williambrach it looks like its already been implemented in the last couple of PRs, could do with a bump to the pypi version though

williambrach commented 1 month ago

@squinn1 thanks! I was just confused because readme was not updated :D !

the-praxs commented 1 month ago

@squinn1 thanks! I was just confused because readme was not updated :D !

pricing_list.md has the updated cost but it's not reflected in the README. So that should either be updated or it reflects the list file.