Skip to content

Commit

Permalink
doc: list Supported encodings
Browse files Browse the repository at this point in the history
  • Loading branch information
danny50610 committed May 18, 2024
1 parent abdaec2 commit a145975
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@

PHP port for [openai/tiktoken](https://github.com/openai/tiktoken) (most)

## Supported encodings

- gpt-3.5-turbo
- gpt-4
- gpt-4o
- more ...

For available encodings, see `src/EncodingFactory.php`

## Installation

```sh
Expand Down Expand Up @@ -45,5 +54,3 @@ $enc = EncodingFactory::createByModelName('gpt-3.5-turbo');
var_dump($enc->decode($enc->encode("hello world")));
// output: string(11) "hello world"
```

For available encodings, see `src/EncodingFactory.php`

0 comments on commit a145975

Please sign in to comment.