File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
src/openai_messages_token_helper Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
+ ## [ 0.1.10] - Aug 7, 2024
6
+
7
+ - Add additional OpenAI.com model names to the ` get_token_limit ` function.
8
+
5
9
## [ 0.1.9] - Aug 7, 2024
6
10
7
11
- Add gpt-4o-mini support, by adding a 33.3x multiplier to the token cost.
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " openai-messages-token-helper"
3
3
description = " A helper library for estimating tokens used by messages sent through OpenAI Chat Completions API."
4
- version = " 0.1.9 "
4
+ version = " 0.1.10 "
5
5
authors = [{name = " Pamela Fox" }]
6
6
requires-python = " >=3.9"
7
7
readme = " README.md"
Original file line number Diff line number Diff line change 23
23
"gpt-4v" : 128000 ,
24
24
"gpt-4o" : 128000 ,
25
25
"gpt-4o-mini" : 128000 ,
26
+ # OpenAI specific model names:
27
+ # https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4
28
+ "gpt-4-0613" : 8192 ,
29
+ "gpt-4-turbo" : 128000 ,
30
+ "gpt-4-turbo-2024-04-09" : 128000 ,
31
+ "gpt-4-turbo-preview" : 128000 ,
32
+ "gpt-4-0125-preview" : 128000 ,
33
+ "gpt-4-1106-preview" : 128000 ,
26
34
}
27
35
28
36
You can’t perform that action at this time.
0 commit comments