-
Notifications
You must be signed in to change notification settings - Fork 6
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
enhance: split response into chunks smaller than 2000 chars #49
enhance: split response into chunks smaller than 2000 chars #49
Conversation
…d utility function to split message. Keep each chunk to stop at meaningful sentence
…ers' of github.com:bifrostlab/llm-assistant into fix-error-when-llm-response-is-longer-than-2000-characters Add utility function to crop message into less than 2000 chars chunk. Full sentences are retained
@AndrewsTrinh why don't you replace my function with yours? |
|
@rodonguyen ready for review! |
View issue #35
This PR:
split()
inllm.py
to split a string into smaller chunks less than 2000-char longbot.py
Result: