langchain
0ceda557 - add o1 and o3-mini to pricing (#29628)

Commit
332 days ago
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.
Parents
Loading