Skip to content

Commit 6057ba5

Browse files
authored
⚡ fix: update OpenAI model cost values for accuracy (#142)
# Motivation See #141 # Description o3 prices were reduced by 5x several weeks ago and this has not been reflected in the package. We have simply changed the prices in the constants. https://platform.openai.com/docs/models/o3 - Input price is 2$ / 1M tokens - Cached price is 0.50$ / 1M tokens - Output price is 8$ / 1M tokens
1 parent c4ff686 commit 6057ba5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

libs/community/langchain_community/callbacks/openai_info.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@
5757
"o1-pro-completion": 0.6,
5858
"o1-pro-2025-03-19-completion": 0.6,
5959
# OpenAI o3 input
60-
"o3": 0.01,
61-
"o3-2025-04-16": 0.01,
62-
"o3-cached": 0.0025,
63-
"o3-2025-04-16-cached": 0.0025,
60+
"o3": 0.002,
61+
"o3-2025-04-16": 0.002,
62+
"o3-cached": 0.0005,
63+
"o3-2025-04-16-cached": 0.0005,
6464
# OpenAI o3 output
65-
"o3-completion": 0.04,
66-
"o3-2025-04-16-completion": 0.04,
65+
"o3-completion": 0.008,
66+
"o3-2025-04-16-completion": 0.008,
6767
# OpenAI o4-mini input
6868
"o4-mini": 0.0011,
6969
"o4-mini-2025-04-16": 0.0011,

0 commit comments

Comments
 (0)