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

Perform token length checking in %%assist #57

Merged
merged 2 commits into from
Mar 18, 2023
Merged

Perform token length checking in %%assist #57

merged 2 commits into from
Mar 18, 2023

Conversation

rgbkrk
Copy link
Owner

@rgbkrk rgbkrk commented Mar 18, 2023

  • Use tiktoken to calculate the estimated tokens
  • Remove the oldest messages until we're under the token limit
  • test it!

I cleaned up some of the pandas specific context gathering as well and tested that too.

@rgbkrk rgbkrk merged commit bbb9dfe into main Mar 18, 2023
@rgbkrk rgbkrk deleted the token-checking branch March 18, 2023 15:17
@rgbkrk rgbkrk mentioned this pull request Mar 22, 2023
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

Successfully merging this pull request may close these issues.

None yet

1 participant