From d895db11d622a2f14eece7bc9107973a6e0ad6a7 Mon Sep 17 00:00:00 2001 From: ogawa <63557554+ogawa65a@users.noreply.github.com> Date: Thu, 8 Aug 2024 22:22:11 +0900 Subject: [PATCH] community[patch]: gpt-4o-2024-08-06 costs (#25164) - **Description:** updated OpenAI cost definitions according to the following: - https://openai.com/api/pricing/ - **Twitter handle:** `@ogawa65a` --------- Co-authored-by: Chester Curme --- libs/community/langchain_community/callbacks/openai_info.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/community/langchain_community/callbacks/openai_info.py b/libs/community/langchain_community/callbacks/openai_info.py index f7ecf291ca..82489e7ba1 100644 --- a/libs/community/langchain_community/callbacks/openai_info.py +++ b/libs/community/langchain_community/callbacks/openai_info.py @@ -17,9 +17,11 @@ MODEL_COST_PER_1K_TOKENS = { # GPT-4o input "gpt-4o": 0.005, "gpt-4o-2024-05-13": 0.005, + "gpt-4o-2024-08-06": 0.0025, # GPT-4o output "gpt-4o-completion": 0.015, "gpt-4o-2024-05-13-completion": 0.015, + "gpt-4o-2024-08-06-completion": 0.01, # GPT-4 input "gpt-4": 0.03, "gpt-4-0314": 0.03,