Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first install, first try : error raised #54

Closed
rileyrg opened this issue Jan 22, 2024 · 13 comments
Closed

first install, first try : error raised #54

rileyrg opened this issue Jan 22, 2024 · 13 comments

Comments

@rileyrg
Copy link

rileyrg commented Jan 22, 2024

I installed ollama and had that pull zephyr.

When I "C-c e a i" to ask Ella something:- I type in a question, hit enter and ....

Debugger entered--Lisp error: (wrong-number-of-arguments (2 . 2) 1)
#f(compiled-function (_ msg) #<bytecode -0x39ad22ed7423a08>)("Unknown error calling ollama")
llm-request-callback-in-buffer(#<buffer ellama when is christmas? (mistral:7b-instruct-v0.2-q6/K).org> #f(compiled-function (_ msg) #<bytecode -0x39ad22ed7423a08>) "Unknown error calling ollama")
#f(compiled-function (_ ) #<bytecode 0x1a7d3104803e9095>)(404 ((error . "model 'mistral:7b-instruct-v0.2-q6/K' not found, t...")))
#f(compiled-function (
on-success on-error) #<bytecode -0x46530f480170ce3>)((:error (error http 404)) nil #f(compiled-function (_ _) #<bytecode 0x1a7d3104803e9095>))
url-http-activate-callback()
url-http-content-length-after-change-function(125 207 82)
url-http-wait-for-headers-change-function(1 212 211)
url-http-generic-filter(# "HTTP/1.1 404 Not Found\15\nContent-Type: application/...")

I havent tried to debug or anything, just in case this is obvious to someone here. Using consult btw.

@rileyrg rileyrg changed the title first install, first try first install, first try : error raised Jan 22, 2024
@s-kostyaev
Copy link
Owner

Remove ellama-provider from your configuration or pull "mistral:7b-instruct-v0.2-q6/K"

@rileyrg
Copy link
Author

rileyrg commented Jan 22, 2024 via email

@s-kostyaev
Copy link
Owner

I think you read it before copy pasting 😃

@s-kostyaev
Copy link
Owner

I have added more comments about it into readme. You are not the first person with this exact problem.

@rileyrg
Copy link
Author

rileyrg commented Jan 22, 2024 via email

@s-kostyaev
Copy link
Owner

s-kostyaev commented Jan 22, 2024

I mean call in your terminal:

ollama pull mistral:7b-instruct-v0.2-q6_K # here was also typo

@s-kostyaev
Copy link
Owner

Or remove all ellama configuration from your config file and restart emacs - all should works fine by default if you have ollama installed and zephyr pulled.

@rileyrg
Copy link
Author

rileyrg commented Jan 22, 2024

FIY I just deleted all lines with provider in and it worked.

(use-package ellama
:init
(setopt ellama-language "German")
(require 'llm-ollama))

@s-kostyaev
Copy link
Owner

FIY I just deleted all lines with provider in and it worked.

(use-package ellama :init (setopt ellama-language "German") (require 'llm-ollama))

Even that lines can be removed 🙂

@rileyrg
Copy link
Author

rileyrg commented Jan 22, 2024 via email

@s-kostyaev
Copy link
Owner

s-kostyaev commented Jan 22, 2024

To work without configuration it should be:

ollama pull zephyr

in your terminal. If you use:

ollama pull mistral:7b-instruct-v0.2-q6_K

You need this ellama configuration:

  (use-package ellama
    :init
    (require 'llm-ollama)
    (setopt ellama-provider
                    (make-llm-ollama
                     ;; this model should be pulled to use it
                     ;; value should be the same as you print in terminal during pull
                     :chat-model "mistral:7b-instruct-v0.2-q6_K"
                     :embedding-model "mistral:7b-instruct-v0.2-q6_K")))

Check updated readme.

@s-kostyaev s-kostyaev reopened this Jan 22, 2024
@s-kostyaev
Copy link
Owner

Close this issue if your setup works, or feel free to go for advice here.

@s-kostyaev
Copy link
Owner

Closing this due to inactivity. @rileyrg feel free to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants