Pavel Panko

Results 5 comments of Pavel Panko

As an outside consumer of this work, it would be particularly interesting to read about functions or features you recommend using to support these practices. I would have liked to...

```lisp Debugger entered--Lisp error: (wrong-type-argument json-value-p "HTTP/2 200 \ndate: Tue, 21 May 2024 20:09:13 GMT\ncontent-type: application/json; charset=utf-8\n...") json-serialize("HTTP/2 200 \ndate: Tue, 21 May 2024 20:09:13 GMT\ncontent-type: application/json; charset=utf-8\n..." :null-object nil...

Correct -- here's the error from the OP: ```lisp Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("\\(?:[ \11\n\15]+\\)\\'" nil nil) gptel-curl--parse-response((:token "dcab6e4d3b53057500fb4191cf8ddfb3" :parser #f(compiled-function (backend response info) #) :callback (lambda (response...

Thanks for checking. Clearing the config file didn't affect either error -- `gptel-send` works but `gptel-rewrite-and-replace` does not. Any chance either issue is related to this block? https://github.com/karthink/gptel/blob/3bce2caa5dc773d1b1fce53e8453d2e1ce534b8b/gptel-curl.el#L388-L395

@ISouthRain Your workaround solved the problem for me -- much appreciated!