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: improve cancel logic in openAi model #14713

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eneufeld
Copy link
Contributor

What it does

The cancel of a request was not working correctly. With the changes the cancelToken is better taken into account.

How to test

Try using the inline completion of the IDE AI Feature. This leads to a very slow responsiveness of the ui as the underlying language model was continuing creating responses.
With the fix this is not the case anymore for the OpenAI Model.

Follow-ups

Improve cancel handling of all other language models.

Breaking changes

  • This PR introduces breaking changes and requires careful review. If yes, the breaking changes section in the changelog has been updated.

Attribution

Review checklist

Reminder for reviewers

The cancel of a request was not working correctly.
With the changes the cancelToken is better taken into account.
@sdirix sdirix self-requested a review January 10, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Waiting on reviewers
Development

Successfully merging this pull request may close these issues.

1 participant