Releases: yethee/tiktoken-php
Releases · yethee/tiktoken-php
1.0.0
0.12.0: GPT-5.1
Added
- Added support for GPT-5.1
0.11.0
0.10.0
Added FFI bindings for rust lib
Added an alternative implementation of the encoder using tiktoken-rs library (#27).
Added
- Added
Yethee\Tiktoken\Exception\IOErrorclass - Added
Yethee\Tiktoken\Exception\LibErrorclass - Added
Yethee\Tiktoken\Encoder\LibEncoderclass - Added
Yethee\Tiktoken\Encoder\NativeEncoderclass - Added
Yethee\Tiktoken\Vocab\VocabLoader::loadFile()method
Changed
Yethee\Tiktoken\Encoderis now an interface- Added argument
$useLibtoYethee\Tiktoken\EncoderProviderconstructor- public function __construct() + public function __construct(private bool $useLib = false)
- [BC break] You can no longer disable cache for vocabs.
Changes signature ofEncoderProvider::setVocabCache()method:- public function setVocabCache(string|null $cacheDir): void + public function setVocabCache(string $cacheDir): void
0.8.0
0.7.0
0.6.0: Add support embedding models
Added
- Added support for models:
babbage-002davinci-002text-embedding-3-smalltext-embedding-3-large