llama-stack-mirror/llama_stack/providers
Sébastien Han b45cc42202
chore: remove usage of load_tiktoken_bpe
The `load_tiktoken_bpe()` function depends on blobfile to load
tokenizer.model files. However, blobfile brings in pycryptodomex, which
is primarily used for JWT signing in GCP - functionality we don’t
require, as we always load tokenizers from local files. pycryptodomex
implements its own cryptographic primitives, which are known to be
problematic and insecure. While blobfile could potentially switch to the
more secure PyCA cryptography library, the project appears inactive, so
this transition may not happen soon. Fortunately, `load_tiktoken_bpe()`
is a simple function that just reads a BPE file and returns a dictionary
mapping byte sequences to their mergeable ranks. It’s straightforward
enough for us to implement ourselves.

Signed-off-by: Sébastien Han <seb@redhat.com>
2025-05-27 20:47:06 +02:00
..
inline fix(tools): do not index tools, only index toolgroups (#2261) 2025-05-25 13:27:52 -07:00
registry chore: remove usage of load_tiktoken_bpe 2025-05-27 20:47:06 +02:00
remote chore: allow to pass CA cert to remote vllm (#2266) 2025-05-26 20:59:03 +02:00
utils fix: match mcp headers in provider data to Responses API shape (#2263) 2025-05-25 14:33:10 -07:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
datatypes.py fix(tools): do not index tools, only index toolgroups (#2261) 2025-05-25 13:27:52 -07:00