Skip to content

Commit

Permalink
Merge pull request #19 from iamarsenibragimov/patch-1
Browse files Browse the repository at this point in the history
add support for o1 models
  • Loading branch information
yethee authored Oct 12, 2024
2 parents 780b874 + 06f7621 commit 6d952b0
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 @@ -47,6 +47,7 @@ final class EncoderProvider implements ResetInterface
],
];
private const MODEL_PREFIX_TO_ENCODING = [
'o1-' => 'o200k_base',
'gpt-4o-' => 'o200k_base',
'gpt-4-' => 'cl100k_base',
'gpt-3.5-turbo-' => 'cl100k_base',
Expand Down

0 comments on commit 6d952b0

Please sign in to comment.