We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 714bfff commit 59a93e3Copy full SHA for 59a93e3
1 file changed
src/EncoderProvider.php
@@ -56,15 +56,17 @@ final class EncoderProvider implements ResetInterface
56
'o1-' => 'o200k_base',
57
'o3-' => 'o200k_base',
58
'chatgpt-4o-' => 'o200k_base',
59
- 'gpt-4o-' => 'o200k_base',
60
'gpt-4-' => 'cl100k_base',
+ 'gpt-4.1-' => 'o200k_base',
61
+ 'gpt-4o-' => 'o200k_base',
62
'gpt-3.5-turbo-' => 'cl100k_base',
63
];
64
private const MODEL_TO_ENCODING = [
65
'o1' => 'o200k_base',
66
'o3' => 'o200k_base',
- 'gpt-4o' => 'o200k_base',
67
'gpt-4' => 'cl100k_base',
68
+ 'gpt-4.1' => 'o200k_base',
69
+ 'gpt-4o' => 'o200k_base',
70
'gpt-3.5-turbo' => 'cl100k_base',
71
'gpt-3.5' => 'cl100k_base',
72
'davinci-002' => 'cl100k_base',
0 commit comments