langchain/libs/community/langchain_community/callbacks
Dmitrii Rashchenko 0ceda557aa
add o1 and o3-mini to pricing (#29628)
### PR Title:  
**community: add latest OpenAI models pricing**  

### Description:  
This PR updates the OpenAI model cost calculation mapping by adding the
latest OpenAI models, **o1 (non-preview)** and **o3-mini**, based on the
pricing listed on the [OpenAI pricing
page](https://platform.openai.com/docs/pricing).

### Changes:  
- Added pricing for `o1`, `o1-2024-12-17`, `o1-cached`, and
`o1-2024-12-17-cached` for input tokens.
- Added pricing for `o1-completion` and `o1-2024-12-17-completion` for
output tokens.
- Added pricing for `o3-mini`, `o3-mini-2025-01-31`, `o3-mini-cached`,
and `o3-mini-2025-01-31-cached` for input tokens.
- Added pricing for `o3-mini-completion` and
`o3-mini-2025-01-31-completion` for output tokens.

### Issue:  
N/A  

### Dependencies:  
None  

### Testing & Validation:  
- No functional changes outside of updating the cost mapping.  
- No tests were added or modified.
2025-02-06 08:02:20 -05:00
..
streamlit Improvement[Community] Improve streamlit_callback_handler (#26373) 2024-09-17 21:54:37 +00:00
tracers community: chore warn deprecate the tracer (#27159) 2024-11-13 11:33:34 -05:00
__init__.py
aim_callback.py
argilla_callback.py
arize_callback.py
arthur_callback.py
bedrock_anthropic_callback.py community: adding haiku 3.5 and opus callbacks (#28783) 2024-12-18 09:45:10 -05:00
clearml_callback.py
comet_ml_callback.py
confident_callback.py
context_callback.py
fiddler_callback.py
flyte_callback.py
human.py
infino_callback.py
labelstudio_callback.py
llmonitor_callback.py
manager.py
mlflow_callback.py
openai_info.py add o1 and o3-mini to pricing (#29628) 2025-02-06 08:02:20 -05:00
promptlayer_callback.py
sagemaker_callback.py
trubrics_callback.py
upstash_ratelimit_callback.py community[patch]: Add missing annotations (#24890) 2024-07-31 18:13:44 +00:00
uptrain_callback.py
utils.py
wandb_callback.py community[patch]: chore warn deprecate the wandb callback handler (#27062) 2024-10-03 11:59:20 -04:00
whylabs_callback.py