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

chat: fix emoji corruption #3443

Merged
merged 4 commits into from
Jan 30, 2025
Merged

chat: fix emoji corruption #3443

merged 4 commits into from
Jan 30, 2025

Conversation

cebtenzzre
Copy link
Member

@cebtenzzre cebtenzzre commented Jan 30, 2025

DeepSeek often ends responses to messages such as "hello" with an emoji.

We were parsing each token of output from the LLM as a QString. Tokens do not necessarily form complete code points, and can represent individual bytes. So we were getting a series of question marks instead of an emoji:




The changes in this PR are sufficient to fix that:
Screenshot 2025-01-30 at 18 07 01

Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
@cebtenzzre cebtenzzre marked this pull request as ready for review January 30, 2025 23:00
@cebtenzzre cebtenzzre requested a review from manyoso January 30, 2025 23:07
Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
@cebtenzzre cebtenzzre merged commit 1f2712d into main Jan 30, 2025
4 of 12 checks passed
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.

1 participant