Skip to content

Commit

Permalink
community[patch]: gpt-4o-mini costs (#24421)
Browse files Browse the repository at this point in the history
  • Loading branch information
baskaryan authored Jul 19, 2024
1 parent 604dfe2 commit dda9438
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/community/langchain_community/callbacks/openai_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
from langchain_core.outputs import ChatGeneration, LLMResult

MODEL_COST_PER_1K_TOKENS = {
# GPT-4o-mini input
"gpt-4o-mini": 0.00015,
"gpt-4o-mini-2024-07-18": 0.00015,
# GPT-4o-mini output
"gpt-4o-mini-completion": 0.0006,
"gpt-4o-mini-2024-07-18-completion": 0.0006,
# GPT-4o input
"gpt-4o": 0.005,
"gpt-4o-2024-05-13": 0.005,
Expand Down

0 comments on commit dda9438

Please sign in to comment.