community[patch]: gpt-4o-mini costs (#24421)

This commit is contained in:
Bagatur 2024-07-19 12:02:44 -07:00 committed by GitHub
parent 604dfe2d99
commit dda9438e87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,6 +8,12 @@ from langchain_core.messages import AIMessage
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,