Make the default llm chat aware that its inside of Emacs

This commit is contained in:
Jeremy Dormitzer 2024-05-21 11:01:13 -04:00
parent b231ec9327
commit 5faa99158d

View File

@ -224,7 +224,7 @@ The process is named NAME and runs in BUFFER-NAME."
;;;###autoload
(defun llm-chat (system-prompt &optional name)
"Start a chat session with llm, prompting it with SYSTEM-PROMPT, naming the process and buffer NAME."
(interactive (list (read-string "System prompt: " "You are a helpful AI assistant.")
(interactive (list (read-string "System prompt: " "You are a helpful AI assistant running inside the Emacs text editor.")
"llm-chat"))
(let* ((name (or name "llm-chat"))
(buffer-name (format "*%s*" name))