-
Notifications
You must be signed in to change notification settings - Fork 441
fix: avoid printing errors from the server in the chat #939
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
fix: avoid printing errors from the server in the chat #939
Conversation
@leseb needs a rebase now - but thank you for the fixes! |
9679a7d
to
966c9c6
Compare
Done, thanks! |
966c9c6
to
09f67cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This lgtm, but I'm not going to merge since @alimaredia self-requesteed a review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops - meant to Approve, not Request Changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as well
739f9c5
to
0eeccf7
Compare
When an error occurs in the chat, we don't want to surface the whole server stacktrace but let the chat handle the exception and return a proper message. Here is an example: ``` ilab chat ╭────────────────────────────────────────────────────────── system ──────────────────────────────────────────────────────────╮ │ Welcome to Chat CLI w/ MERLINITE-7B-LAB-Q4_K_M (type /h for help) │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ >>> hello [S][default] Message too large for context size. ``` We just print the relevant information and hide the internal server exception. Fixes: instructlab#937 Signed-off-by: Sébastien Han <seb@redhat.com>
When an error occurs in the chat, we don't want to surface the whole
server stacktrace but let the chat handle the exception and return a
proper message.
Here is an example:
We just print the relevant information and hide the internal server
exception.
Fixes: #937
Signed-off-by: Sébastien Han seb@redhat.com
ON-TOP of #925. Let's merge #925 first.