Skip to content

Commit 07dd8dd

Browse files
authored
community[patch]: update gpt-4o cost (langchain-ai#27038)
updated OpenAI cost definition according to the following: https://openai.com/api/pricing/
1 parent 7a07196 commit 07dd8dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/community/langchain_community/callbacks/openai_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
"gpt-4o-mini-completion": 0.0006,
2828
"gpt-4o-mini-2024-07-18-completion": 0.0006,
2929
# GPT-4o input
30-
"gpt-4o": 0.005,
30+
"gpt-4o": 0.0025,
3131
"gpt-4o-2024-05-13": 0.005,
3232
"gpt-4o-2024-08-06": 0.0025,
3333
# GPT-4o output
34-
"gpt-4o-completion": 0.015,
34+
"gpt-4o-completion": 0.01,
3535
"gpt-4o-2024-05-13-completion": 0.015,
3636
"gpt-4o-2024-08-06-completion": 0.01,
3737
# GPT-4 input

0 commit comments

Comments
 (0)