Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support chatgpt-4o models
Browse files Browse the repository at this point in the history
yethee committed Oct 12, 2024
1 parent c11fc7f commit e22bcd7
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
@@ -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',

0 comments on commit e22bcd7

Please sign in to comment.