-
Notifications
You must be signed in to change notification settings - Fork 320
gptel--display: folding for markdown #845
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
base: master
Are you sure you want to change the base?
Conversation
Thanks for the PR @kiennq. When included in the buffer, the tool result is fed back to the LLM in all subsequent turns. gptel does not maintain the state of the conversation anywhere outside of the buffer. The tool result is thus the source of truth for the LLM, and should not be truncated. |
2d34ab8
to
3fe36a1
Compare
You're right. I should just implement the folding for markdown case instead. |
63ef1cd
to
eff87b2
Compare
I will review this when I have more time, but folding tool blacks in markdown buffers is a welcome feature. I have some concerns about the spacing changes around the |
eff87b2
to
4d7ee39
Compare
@kiennq I'm taking a look at this PR now with the intention to merge soon. Here are a couple of suggestions:
EDIT: Sorry, I read the code wrong, Org's folding is still handled by I can look at the Markdown-specific changes after this. |
I also had a look at
What would be good is a way to show hide the tool block like in Org-mode, with just i also think
like we do in Org mode. Pressing |
@kiennq are you still interested in this PR? |
This would be useful to allow to peek at called tools and its result