karthink / gptel

A simple LLM client for Emacs
GNU General Public License v3.0
1.04k stars 111 forks source link

Why not use plz or request? #226

Closed tusharhero closed 4 months ago

tusharhero commented 4 months ago

Is there any particular reason for not using https://github.com/alphapapa/plz.el or tkf.github.io/emacs-request/ ?

karthink commented 4 months ago

Is there any particular reason to use them?

tusharhero commented 4 months ago

Reducing the amount of code you maintain and duplicating less can save time and effort.

karthink commented 4 months ago

I would still have to write the tiresome and finicky process sentinels and filters gptel-curl uses. The only functions I could use plz for would be to replace gptel-curl-get-response and a bit of the error handling, and even these would look mostly the same because of the bookkeeping required on gptel's part. Including the dependencies, the end result would be a big overall increase in the amount of code gptel uses. Take a look at gptel-curl and let me know how specifically using plz or request can help.

karthink commented 4 months ago

Converting to a discussion since there isn't anything to fix/add at the moment.