From 07dd8dd3d7044c3b677343848aa3a37721c92d2e Mon Sep 17 00:00:00 2001 From: ogawa <63557554+ogawa65a@users.noreply.github.com> Date: Mon, 7 Oct 2024 22:06:30 +0900 Subject: [PATCH] community[patch]: update gpt-4o cost (#27038) updated OpenAI cost definition according to the following: https://openai.com/api/pricing/ --- libs/community/langchain_community/callbacks/openai_info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/community/langchain_community/callbacks/openai_info.py b/libs/community/langchain_community/callbacks/openai_info.py index 7fbb0d097e1b9..9e2c070ccd2bf 100644 --- a/libs/community/langchain_community/callbacks/openai_info.py +++ b/libs/community/langchain_community/callbacks/openai_info.py @@ -27,11 +27,11 @@ "gpt-4o-mini-completion": 0.0006, "gpt-4o-mini-2024-07-18-completion": 0.0006, # GPT-4o input - "gpt-4o": 0.005, + "gpt-4o": 0.0025, "gpt-4o-2024-05-13": 0.005, "gpt-4o-2024-08-06": 0.0025, # GPT-4o output - "gpt-4o-completion": 0.015, + "gpt-4o-completion": 0.01, "gpt-4o-2024-05-13-completion": 0.015, "gpt-4o-2024-08-06-completion": 0.01, # GPT-4 input