File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
openai-count-tokens/src/main/scala/io/cequence/openaiscala/service Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ trait OpenAICountTokensHelper {
53
53
// every message follows <|start|>{role/name}\n{content}<|end|>\n
54
54
// if there's a name, the role is omitted
55
55
(4 , - 1 )
56
- case ModelId .gpt_3_5_turbo_0613 | ModelId .gpt_3_5_turbo_16k_0613 | ModelId .gpt_4_0314 |
57
- ModelId .gpt_4_32k_0314 | ModelId .gpt_4_0613 | ModelId .gpt_4_32k_0613 =>
56
+ case ModelId .gpt_3_5_turbo_0613 | ModelId .gpt_3_5_turbo_16k_0613 | ModelId .gpt_4_0613 |
57
+ ModelId .gpt_4_32k_0613 | ModelId .gpt_4_turbo_2024_04_09 =>
58
58
(3 , 1 )
59
59
case ModelId .gpt_3_5_turbo => tokensPerMessageAndName(ModelId .gpt_3_5_turbo_0613)
60
60
case ModelId .gpt_4 => tokensPerMessageAndName(ModelId .gpt_4_0613)
You can’t perform that action at this time.
0 commit comments