Open GitHubGeek opened 1 week ago
It'd be great if the non-code output is inserted as code comments, and the 2nd code block is also included in the buffer.
Sounds like a good idea. I will think how to implement it.
Until it will be implemented as a workaround you can use chat or ellama-ask-about
instead.
Is there a config option to have the output in plain text instead of markdown?
Is there a config option to have the output in plain text instead of markdown?
try this
(setopt ellama-major-mode 'fundamental-mode)
Seem to have no impact? My doom emacs config.el section:
(use-package! ellama
:config
(setopt ellama-language "English")
(require 'llm-ollama)
(setopt ellama-major-mode 'fundamental-mode)
(setopt ellama-provider
(make-llm-ollama
:chat-model "phind-codellama:34b-v2"
:embedding-model "phind-codellama:34b-v2")))
Seem to have no impact? My doom emacs config.el section:
(use-package! ellama :config (setopt ellama-language "English") (require 'llm-ollama) (setopt ellama-major-mode 'fundamental-mode) (setopt ellama-provider (make-llm-ollama :chat-model "phind-codellama:34b-v2" :embedding-model "phind-codellama:34b-v2")))
Please open another issue for this. I will see later.
@GitHubGeek try to improve template:
(setopt ellama-code-complete-prompt-template "Continue the following code, only write new code in format ```language\n...\n```:\n```\n%s\n```\nWrite all the code in single code block.")
After that try your original prompt.
Summary: when using ellama-code-complete in an existing buffer, only the 1st code block is added to current buffer. Any non-code text and 2nd code block are missing.
Ollama terminal output showing 2 blocks of code (Model:
phind-codellama:34b-v2
)Running ellama-code-complete:
Seems to me Ellama filtered out any text outside the 1st Markdown code block.
It'd be great if the non-code output is inserted as code comments, and the 2nd code block is also included in the buffer.