From 3894b4d9a57989f155e79a6dddfdb376bdeffd6b Mon Sep 17 00:00:00 2001 From: Massimiliano Pronesti Date: Mon, 12 Feb 2024 06:24:24 +0100 Subject: [PATCH] community: add gpt-4-turbo and gpt-4-0125 costs (#17349) Ref: https://openai.com/pricing --- libs/community/langchain_community/callbacks/openai_info.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/community/langchain_community/callbacks/openai_info.py b/libs/community/langchain_community/callbacks/openai_info.py index c6f8262285b99..6fe210c9f5559 100644 --- a/libs/community/langchain_community/callbacks/openai_info.py +++ b/libs/community/langchain_community/callbacks/openai_info.py @@ -15,6 +15,8 @@ "gpt-4-32k-0613": 0.06, "gpt-4-vision-preview": 0.01, "gpt-4-1106-preview": 0.01, + "gpt-4-0125-preview": 0.01, + "gpt-4-turbo-preview": 0.01, # GPT-4 output "gpt-4-completion": 0.06, "gpt-4-0314-completion": 0.06, @@ -24,6 +26,8 @@ "gpt-4-32k-0613-completion": 0.12, "gpt-4-vision-preview-completion": 0.03, "gpt-4-1106-preview-completion": 0.03, + "gpt-4-0125-preview-completion": 0.03, + "gpt-4-turbo-preview-completion": 0.03, # GPT-3.5 input # gpt-3.5-turbo points at gpt-3.5-turbo-0613 until Feb 16, 2024. # Switches to gpt-3.5-turbo-0125 after.