Open safijari opened 5 months ago
Please also provide your Emacs version, gptel commit version and OS (Windows/Mac/Linux). (If you installed it using package-install and don't know the gptel commit, it's enough to tell me when you installed/updated it.)
TL;DR: encountered this error trying to use Ollama with an old version of gptel, upgraded to 0.9.0 and reinstalled and the error went away.
Background: Never had Ollama working in gptel before, just set up Ollama today. Have been using gtpel with openai and anthropic models for months (thanks a ton btw, it's been great).
My model config: IP address is an IP on my local network
(gptel-make-ollama "ollama-llama3" ;Any name of your choosing
:host "100.xxx.xxx.xxx:11434" ;Where it's running
:stream t ;Stream responses
:models '("llama3")) ;List of models
Emacs version: I am running brew-installed emacs-mac
==> railwaycat/emacsmacport/emacs-mac: stable emacs-29.1-mac-10.0, HEAD
Tests with Ollama/gptel: Same error as above on gptel 0.8.5.
I upgraded to the most recent commit on master (a834adbcba
) and got Wrong type argument stringp nil
error.
Then I downgraded to commit (4c0583b
) since it looked like the official 0.9.0 release. After resetting gptel with package-install-file
, error went away and I can generate responses successfully.
Other tests Tested using cURL, works fine
curl 100.xxx.xxx.xxx:11434/api/generate -d '{"model":"llama3","prompt":"Why is the sky blue?","stream":false}'
Tested gptel using chatgpt-3.5-turbo, that works fine too.
I upgraded to the most recent commit on master (a834adbcba) and got Wrong type argument stringp nil error.
Then I downgraded to commit (4c0583b) since it looked like the official 0.9.0 release. After resetting gptel with package-install-file, error went away and I can generate responses successfully.
That's odd. Is the takeaway that
No Ollama code has been touched since the release so this is surprising.
@karthink not sure! I agree that does seem surprising.
I have had intermittent issues where something in gptel gets borked and reinstalling the package fixes it, so I'm not 100% confident. Will let you know if have time to do a more thorough repro.
I get this error
Some times when I uninstall and reinstall gptel the error goes away but comes back after restarting emacs. No idea what's causing it. Any help would be appreciated. Here's the backtrace