gptel: Add gptel-add-context
function
#292
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @karthink
Coming back to our short discussion 5 hours ago.
Maybe I'm just an old, grumpy dude, but those commercial offerings that I checked out didn't hold their water. Cody was quite OK, but I didn't get it to work with my LLM API keys (for example OpenAI). It does work well with Claude 2.0 and ollama, though.
Having said so, I prefer the functionality of gptel. I appreciate that it has a small and simple API surface which nonetheless includes all actually interesting interaction patterns. When adding Emacs and the GPL into the mix, it's a hard to beat mixture. There was only one important feature missing for me, so I built it. Couldn't have done that to any of those proprietary systems(;
Thank you for your effort and wonderful project 馃檹 馃檱
Happy to hear 馃憤 Maybe you'll like this implementation of attaching context. I tried to keep the implementation small, but flexible. I don't have much experience using it, so far, but I did dogfood on this PR from the very beginning(; Also, I'm looking very much forward to using it to tackle some bigger projects next week.
Agreed. I think it's hard to do with the chat APIs. In my tests of the proprietary alternatives, they also didn't really yield better results than actually using the chat modality (when given enough context). So I don't mind intentionally omitting this this feature.
That's a smart choice! Apart from time, these AI based projects tend to have a lot of feature creep and a short half-life. I appreciate your effort to keeping this maintainable while at the same time making it all the more usable. Thank you 馃檹
Thank you for your kind words 馃檹 I didn't have too much time for FOSS lately, but this time was needed so that I can come back to it again in the long term. I'm looking forward to that time!