langchain/libs
ccurme fe0fd9dd70
openai[patch]: upgrade tiktoken and fix test (#30621)
Related to https://github.com/langchain-ai/langchain/issues/30344

https://github.com/langchain-ai/langchain/pull/30542 introduced an
erroneous test for token counts for o-series models. tiktoken==0.8 does
not support o-series models in
`tiktoken.encoding_for_model(model_name)`, and this is the version of
tiktoken we had in the lock file. So we would default to `cl100k_base`
for o-series, which is the wrong encoding model. The test tested against
this wrong encoding (so it passed with tiktoken 0.8).

Here we update tiktoken to 0.9 in the lock file, and fix the expected
counts in the test. Verified that we are pulling
[o200k_base](https://github.com/openai/tiktoken/blob/main/tiktoken/model.py#L8),
as expected.
2025-04-02 10:44:48 -04:00
..
cli docs: streamline LangSmith teasing (#30302) 2025-03-28 15:13:22 -04:00
community community[minor]: Add custom sitemap URL parameter to GitbookLoader (#30549) 2025-04-01 16:17:21 +00:00
core core: Propagate config_factories in RunnableBinding (#30603) 2025-04-01 18:03:58 -04:00
experimental experimental: migrate to external repo (#26879) 2024-09-25 19:02:19 -07:00
langchain langchain: release 0.3.22 (#30557) 2025-03-30 14:48:22 -04:00
partners openai[patch]: upgrade tiktoken and fix test (#30621) 2025-04-02 10:44:48 -04:00
standard-tests tests: release 0.3.17 (#30502) 2025-03-26 18:56:54 +00:00
text-splitters fix huggingface tokenizer default length function (#30185) 2025-03-31 11:54:30 -04:00
packages.yml docs: Add Oxylabs integration (#30591) 2025-04-02 14:40:32 +00:00