Skip to content

Commit

Permalink
Add support chatgpt-4o models
Browse files Browse the repository at this point in the history
  • Loading branch information
yethee committed Oct 12, 2024
1 parent f549568 commit 16fa104
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EncoderProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ final class EncoderProvider implements ResetInterface
];
private const MODEL_PREFIX_TO_ENCODING = [
'o1-' => 'o200k_base',
'chatgpt-4o-' => 'o200k_base',
'gpt-4o-' => 'o200k_base',
'gpt-4-' => 'cl100k_base',
'gpt-3.5-turbo-' => 'cl100k_base',
Expand Down

0 comments on commit 16fa104

Please sign in to comment.