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

feat: Report early stop reason to the UI #755

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

deathbeam
Copy link
Collaborator

The Copilot API returns a finish_reason field that indicates why the response stopped. This commit adds this information to the UI, so the user knows why the response stopped.

If the reason is stop, it means that the response was finished normally, so we don't need to show any message.

Closes #711

The Copilot API returns a `finish_reason` field that indicates why the
response stopped. This commit adds this information to the UI, so the
user knows why the response stopped.

If the reason is `stop`, it means that the response was finished normally,
so we don't need to show any message.
@deathbeam deathbeam merged commit dbce8a2 into CopilotC-Nvim:main Feb 7, 2025
2 checks passed
@deathbeam deathbeam deleted the check-for-finish-reason branch February 7, 2025 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

What can we do about the over aggressive content filter at GitHub
1 participant