karthink / gptel

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

How to set user prompts? #100

Closed firslov closed 11 months ago

firslov commented 11 months ago

When using gptel-send or other functions, how can I customize my own prompt?

karthink commented 11 months ago

M-x customize-variablegptel-directives

firslov commented 11 months ago

I found this variable, but how to use the new prompt with gptel-send, is there a way to select a prefix-arg when calling gptel-send?

karthink commented 11 months ago

Yes. Suppose gptel-send is bound to C-c RET (control + c, return). Then you can add a control+u before: C-u C-c RET. This will bring up a menu where you can set various parameters for the chat.

If it is not bound to a key, you can run C-u M-x gptel-send

firslov commented 11 months ago

Thanks, I tried it, and the effect is just amazing.

nigo81 commented 10 months ago

Yes. Suppose gptel-send is bound to C-c RET (control + c, return). Then you can add a control+u before: C-u C-c RET. This will bring up a menu where you can set various parameters for the chat.

If it is not bound to a key, you can run C-u M-x gptel-send

I use evil keybinding, when i press c-u ,it scrolls up. How to do it with evil keybindings? Thanks