Skip to content

Commit

Permalink
community[patch]: update gpt-4o cost (langchain-ai#27038)
Browse files Browse the repository at this point in the history
updated OpenAI cost definition according to the following:
https://openai.com/api/pricing/
  • Loading branch information
ogawa65a authored Oct 7, 2024
1 parent 7a07196 commit 07dd8dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/community/langchain_community/callbacks/openai_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07dd8dd

Please sign in to comment.