@karthink I have two simple commands that use gptel: one that just prompts you for a prompt in the minibuffer (very similar to the gptel-lookup example in the gptel wiki) and one that defines a thing (very similar to gptel-quick), and they both recently stopped working. I was using Gemini 2.0 flash, and it turns out that setting gptel-include-reasoning to nil made both commands work again. I suspect that both gptel-lookup from the wiki and gptel-quick will need to set gptel-include-reasoning to nil to work with Gemini 2.0 flash. Although I might be completely misunderstanding the situation, all I know is that my commands used to work, stopped working (I don't know whether that was due to a change in gptel or in Gemini), and know work again after adding a `(let (gptel-include-reasoning) ...)`.

https://github.com/oantolin/emacs-config/blob/master/my-lisp/gptel-extras.el

emacs-config/my-lisp/gptel-extras.el at master · oantolin/emacs-config

My personal Emacs configuration. Contribute to oantolin/emacs-config development by creating an account on GitHub.

GitHub

@oantolin Hmm, that's puzzling. I don't think gptel-include-reasoning has anything to do with it, as it only controls the reasoning text display UI, and not whether the model actually generates any reasoning text.

But reasoning models will fail with gptel-quick because the default word limit is too small to include the reasoning, which they always generate.