Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Each character in string counts as token #477

Open
TiagoFINO opened this issue Sep 9, 2023 · 3 comments
Open

Each character in string counts as token #477

TiagoFINO opened this issue Sep 9, 2023 · 3 comments

Comments

@TiagoFINO
Copy link

I tried to compress an array of float into a string so it would spend less tokens, but I ended up finding out it spends more tokens, and figured out that the bigger the string, the more tokens it spends. Is that supposed to happen? If it is, why?

@ryanheath
Copy link

ryanheath commented Sep 9, 2023 via email

@TiagoFINO
Copy link
Author

Well, I thought that one string would count one token, that is way I had the idea of a string
thank you

@mcthouacbb
Copy link

I tried to compress an array of float into a string so it would spend less tokens, but I ended up finding out it spends more tokens, and figured out that the bigger the string, the more tokens it spends. Is that supposed to happen? If it is, why?

It's to discourage people from just copy-pasting well known implementations like stockfish, and also to make it impossible to fit infinite data into the 1024 token limit.

The current best way to compress is to pack data into the 96 bit mantissa of a decimal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants