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

Handle backticks before decoding JSON #683

Merged
merged 2 commits into from
Oct 8, 2024
Merged

Handle backticks before decoding JSON #683

merged 2 commits into from
Oct 8, 2024

Conversation

ryul99
Copy link
Contributor

@ryul99 ryul99 commented Oct 5, 2024

Since LLM models often do not remove backticks in their suggesting responses, particularly with smaller models, I have implemented backtick handling in the code. Please let me know your thoughts.
backticks_example

@yetone
Copy link
Owner

yetone commented Oct 8, 2024

‌Very helpful! Thank you!

lua/avante/suggestion.lua Outdated Show resolved Hide resolved
@yetone yetone merged commit 08bed9e into yetone:main Oct 8, 2024
5 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.

2 participants