Skip to content

Commit 75663f2

Browse files
authored
community: Add cost per 1K tokens for fine-tuned model cached input (#29248)
### Description - Since there is no cost per 1k input tokens for a fine-tuned cached version of `gpt-4o-mini-2024-07-18` is not available when using the `OpenAICallbackHandler`, it raises an error when trying to make calls with such model. - To add the price in the `MODEL_COST_PER_1K_TOKENS` dictionary cc. @efriis
1 parent 667d2a5 commit 75663f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/community/langchain_community/callbacks/openai_info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
"gpt-3.5-turbo-1106-finetuned": 0.003,
129129
"gpt-3.5-turbo-0125-finetuned": 0.003,
130130
"gpt-4o-mini-2024-07-18-finetuned": 0.0003,
131+
"gpt-4o-mini-2024-07-18-finetuned-cached": 0.00015,
131132
# Fine Tuned output
132133
"babbage-002-finetuned-completion": 0.0016,
133134
"davinci-002-finetuned-completion": 0.012,

0 commit comments

Comments
 (0)