Skip to content

Commit dda9438

Browse files
authored
community[patch]: gpt-4o-mini costs (#24421)
1 parent 604dfe2 commit dda9438

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libs/community/langchain_community/callbacks/openai_info.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
from langchain_core.outputs import ChatGeneration, LLMResult
99

1010
MODEL_COST_PER_1K_TOKENS = {
11+
# GPT-4o-mini input
12+
"gpt-4o-mini": 0.00015,
13+
"gpt-4o-mini-2024-07-18": 0.00015,
14+
# GPT-4o-mini output
15+
"gpt-4o-mini-completion": 0.0006,
16+
"gpt-4o-mini-2024-07-18-completion": 0.0006,
1117
# GPT-4o input
1218
"gpt-4o": 0.005,
1319
"gpt-4o-2024-05-13": 0.005,

0 commit comments

Comments
 (0)