-
Notifications
You must be signed in to change notification settings - Fork 150
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
Ollama not working #179
Comments
Could you paste the exact config you are using for Ollama? |
#+BEGIN_SRC emacs-lisp (use-package gptel) (gptel-make-ollama #+END_SRC Ive also tried adding the optional config on readme. |
(use-package gptel
:config
(setq-default gptel-backend
(gptel-make-ollama
"Ollama"
:host "my-ip:11434"
:models '("mistral:latest")
:stream t)
gptel-model "mistral:latest")) ^ Let me know if this doesn't work as expected. |
it works but i get an error error in process filter: Search failed: "^{" |
also how can i use this to interact more efficiently. When i ask it a prompt and it responds my cursor doesn't automatically move down so i have to manually move cursor to line after response. |
also i have a reverse proxy running my ollama backend at https://ollamaapi.my.domain.co |
Have you looked at the README? Most of these questions are addressed there.
Is this when trying to access your ollama instance that's behind the proxy, or one on localhost?
Yes, you'll have to specify https and the correct port. Check the documentation for |
i get the error when accessing it from the ip with port number. it doesnt work at all with the reverse proxy.i get an ere of 301 when trying to use the reverse proxy domain. I tried it with and without port as well as with http and https. Where is that documentation can you link it. I tried to add protocol to the config you sent me and it is invalid. how would i add the protocol to this |
Please look at the documentation of
Unless you've explicitly set the outward facing port for the reverse proxy, it should be available at 443 when using https. (If you're using https Curl will default to using 443 so you don't need to specify the port at all, but it won't hurt to.) |
okay great that has worked for the reverse proxy im still getting the error error in process filter: Search failed: "^{" Even with the reverse proxy working. |
okay so i added the config for auto scroll and stuff now only issue is the error. |
You can place the output here inside triple backticks ``` to format it correctly. |
I get a similar message
|
I somehow figured out the code causing the problem. In source file (re-search-forward "^{") Since the error has no effect on the result, I just add some arguments to suppress it: (re-search-forward "^{" nil t) After changing the line aforementioned in |
* gptel-ollama.el (gptel-curl--parse-stream): Don't throw an error when regex-searching.
@yhzhoucs Thanks for that! Should be fixed for everyone now. |
I use elpacca so i unstalled gptel with
(use-package gptel)
It installs and i can open inside emacs.
As soon as i add the config for hosts and models my emacs falls apart.
How do i enable my local ollama so i can use my local models?
The text was updated successfully, but these errors were encountered: