s-kostyaev / ellama

Ellama is a tool for interacting with large language models from Emacs.
GNU General Public License v3.0
584 stars 38 forks source link

Ollama - Can't get plain text output #130

Closed GitHubGeek closed 4 months ago

GitHubGeek commented 5 months ago

Here's 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")))

With the line (setopt ellama-major-mode 'fundamental-mode) I'm still getting markdown (or formatted) text when running ellama-code-complete in a typescript buffer

p.s. related to #129

s-kostyaev commented 5 months ago

ellama-code-complete in a typescript buffer

Which model do you use? It's model outputs markdown.

s-kostyaev commented 4 months ago

@GitHubGeek if you want to complete code you need to use base code model, not instruction tuned.

s-kostyaev commented 4 months ago

Not a bug