From a14597512d71fd0ac57926032d3e02ab9c9fcca5 Mon Sep 17 00:00:00 2001 From: "Chan, Danny" Date: Sat, 18 May 2024 15:33:28 +0000 Subject: [PATCH] doc: list Supported encodings --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5056750..89119b3 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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`