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

Chat: Restricting Tokens #27

Closed
AkhileshNegi opened this issue Feb 27, 2024 · 0 comments · Fixed by #29
Closed

Chat: Restricting Tokens #27

AkhileshNegi opened this issue Feb 27, 2024 · 0 comments · Fixed by #29
Labels
enhancement New feature or request

Comments

@AkhileshNegi
Copy link
Member

Is your feature request related to a problem? Please describe.
Currently, when upon asking question using API, Open LLM pull the text that is relevant to answer the question. But sometimes, if the text matches too closely with what we already have, we end up sending more words to GPT than it can handle, and that throws an error saying we've exceeded the token limit.

Describe the solution you'd like
Limiting the number of tokens sent to GPT so that API succeed and answer is generated

@AkhileshNegi AkhileshNegi added the enhancement New feature or request label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant