Skip to content

Migrate tokenizer to langchain_tiktoken package#285

Merged
davidmigloz merged 15 commits into
davidmigloz:mainfrom
orenagiv:main
Jan 10, 2024
Merged

Migrate tokenizer to langchain_tiktoken package#285
davidmigloz merged 15 commits into
davidmigloz:mainfrom
orenagiv:main

Conversation

@orenagiv

@orenagiv orenagiv commented Jan 8, 2024

Copy link
Copy Markdown
Contributor

Switched from the tiktoken package to langchain_tiktoken in order to resolve the extremely long build-time release-mode issue.

Original issue:
mvitlov/tiktoken#5

The package owner didn't merge the pull request:
mvitlov/tiktoken#6

So we're using the forked and refactored langchain_tiktoken package instead:
https://pub.dev/packages/langchain_tiktoken

@orenagiv orenagiv changed the title Switched to flutter_tiktoken package Switched to langchain_tiktoken package Jan 9, 2024
@davidmigloz

Copy link
Copy Markdown
Owner

Thanks for your work @orenagiv!

The package looks great. I've just finished the migration of the rest of the packages and fixing some tests.

Do you think we can merge it already?

@orenagiv

orenagiv commented Jan 9, 2024

Copy link
Copy Markdown
Contributor Author

Thanks @davidmigloz 🙏

Yep 🙂 fine by me!

@orenagiv
orenagiv marked this pull request as ready for review January 10, 2024 06:16
@davidmigloz davidmigloz added t:enhancement New feature or request c:llms Models and integrations. c:chat-models Chat models. labels Jan 10, 2024
@davidmigloz davidmigloz added this to the v0.4.0 milestone Jan 10, 2024
@davidmigloz davidmigloz changed the title Switched to langchain_tiktoken package Migrate tokenizer to langchain_tiktoken package Jan 10, 2024
@davidmigloz
davidmigloz merged commit 6a3b646 into davidmigloz:main Jan 10, 2024
@davidmigloz

Copy link
Copy Markdown
Owner

merged! Thanks again 🚀

KennethKnudsen97 pushed a commit to KennethKnudsen97/langchain_dart that referenced this pull request Apr 22, 2024
…z#285)

Switched from the tiktoken package to langchain_tiktoken in order to resolve the extremely long build-time release-mode issue.

Original issue:
mvitlov/tiktoken#5

The package owner didn't merge the pull request:
mvitlov/tiktoken#6

So we're using the forked and refactored langchain_tiktoken package instead:
https://pub.dev/packages/langchain_tiktoken

---------

Co-authored-by: David Miguel <me@davidmiguel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c:chat-models Chat models. c:llms Models and integrations. t:enhancement New feature or request

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants