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

fix: #1096 yield error message upon thread switching #1109

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

louis-jan
Copy link
Contributor

@louis-jan louis-jan commented Dec 20, 2023

Description

Based on issues #1096 and #1098, the chat completion process is currently interrupted when a user switches to another thread. This pull request aims to add a new message state called "Error" and abort ongoing chat completion requests when there is an active thread change. It will then display an appropriate error message and regenerate the options.

The update is applied to 3 following extensions:

  • Nitro extension
  • OpenAI extension
  • Triton LLM extension

Screenshot 2023-12-20 at 14 17 51

Untitled.mov

Unrelated changes

  • Also fixed the issue of triton llm extension where it could yield "JSON parse error 'd token..."

Related issues

fixes #1096
fixes #1098

@github-actions github-actions bot added the type: bug Something isn't working label Dec 20, 2023
@louis-jan
Copy link
Contributor Author

@imtuyethan please see attached video

@louis-jan louis-jan force-pushed the fix/1096-yield-error-upon-thread-switching branch from e87aeee to 4f63cad Compare December 20, 2023 07:31
@louis-jan louis-jan force-pushed the fix/1096-yield-error-upon-thread-switching branch from 4f63cad to 46708ae Compare December 20, 2023 07:41
@louis-jan louis-jan merged commit e037021 into main Dec 20, 2023
3 checks passed
@louis-jan louis-jan deleted the fix/1096-yield-error-upon-thread-switching branch December 20, 2023 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Archived in project
2 participants