karthink / gptel

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

latest gptel throws error on curl completion #178

Closed tvraman closed 5 months ago

tvraman commented 5 months ago

Debugger entered--Lisp error: (wrong-type-argument markerp nil) (marker-position nil) (gptel-curl--stream-cleanup # finishedn)

karthink commented 5 months ago

I'm not able to reproduce this. Does it happen every time?

tvraman commented 5 months ago

seems sporadic.

Also seeing some strange behavior around gptel-post-response-function -- likely due to defalias wierdness?

Symptoms: doing add-hook appeared to bomb but setting via custom works.

Thanks for that hook by the way I used it to make emacspeak speak the response automatically --

karthink commented 5 months ago

gptel-post-response-hook is obsolete, I changed it to gptel-post-response-functions which has different behavior -- functions in this hook receive the beginning and end positions of the response as arguments. If you were using gptel-post-response-hook, please update and modify your hook functions appropriately.

tvraman commented 5 months ago

done. Actually I had done it but there was a version that was bytecompiled somewhere in my env and it required a lot of chasing. --

tvraman commented 5 months ago

appears to not happen any more