mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-07 14:03:26 +00:00
community[patch]: gpt-4o-mini costs (#24421)
This commit is contained in:
@@ -8,6 +8,12 @@ from langchain_core.messages import AIMessage
|
|||||||
from langchain_core.outputs import ChatGeneration, LLMResult
|
from langchain_core.outputs import ChatGeneration, LLMResult
|
||||||
|
|
||||||
MODEL_COST_PER_1K_TOKENS = {
|
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 input
|
||||||
"gpt-4o": 0.005,
|
"gpt-4o": 0.005,
|
||||||
"gpt-4o-2024-05-13": 0.005,
|
"gpt-4o-2024-05-13": 0.005,
|
||||||
|
Reference in New Issue
Block a user