mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-26 04:51:45 +00:00
### 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. |
||
---|---|---|
.. | ||
streamlit | ||
tracers | ||
__init__.py | ||
aim_callback.py | ||
argilla_callback.py | ||
arize_callback.py | ||
arthur_callback.py | ||
bedrock_anthropic_callback.py | ||
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 | ||
promptlayer_callback.py | ||
sagemaker_callback.py | ||
trubrics_callback.py | ||
upstash_ratelimit_callback.py | ||
uptrain_callback.py | ||
utils.py | ||
wandb_callback.py | ||
whylabs_callback.py |