-
Notifications
You must be signed in to change notification settings - Fork 201
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
Latest commit d9edbbc seems broken "gptel--stream-convert-markdown->org is void" #694
Comments
Can't reproduce here, but 7400df6 does indeed drop loading Can you provide more details how to reproduce (emacs version, etc)? |
Hello: Emacs version: "31.0.50" |
Can you provide the exact steps how to reproduce? Can you try with If I run a new fresh emacs session with |
@wlauppe do you have specific instructions on reproducing this? After 7400df6 this can indeed happen, but under very special conditions. (By calling I'm curious about how you triggered them. Alternatively, you might just need to rebuild/reinstall gptel if there are some byte-compilation order issues. |
in the .emacs config and
you will see the line
|
OK I am able to reproduce with Github:deepseek-r1 and Github:gpt-4o and I have a proposed fix. |
…nk#694) * gptel-curl.el (gptel-curl-get-response): Require `gptel-org' for `gptel--stream-convert-markdown->org'. * gptel.el (gptel--url-get-response): Likewise for the url implementation.
To solve this, I first need to answer a question I could use your feedback on: If I select a region in Org mode and send it, should it be subject to the same processing as regular non-region gptel-send? This includes respecting If sending regions does respect these settings, there is no way to send a literal region in Org mode without turning off these settings first. On the other hand, if it always sends the region literally, this might not be what you want when you select a portion of an Org buffer. What is your expectation? |
@wlauppe While I decide between the two possible fixes, you can avoid this error by running |
Simpler is better. I didnt even know there are 3 modes. Until now i assumed there is the chat mode called "gptel-mode" and normal mode. Im not using gptel-branching, so im maybe im not qualified to answer. You hesitate, so you see some arguments in favour of the distinction? What are they? I think it is easier for the users, if there are not too many different behaviours. Otherwise the bugs increase, because the edge cases are not tested well enough, or gptel behaviour is simply confusing, especially for newer users. if you decide on not unifying the behaviour this should be made explicit in the documentation from the README:
If there is more happening it should be documented there. |
The question is what "simpler" means. In this screenshot with a selected region Should the |
Bug Description
While running commit d9edbbc i get the following message in the messages bufffer
the last commit i was on 8889e27, works fine
Steps to Reproduce
execute gptel in an orgmode buffer
The text was updated successfully, but these errors were encountered: