Skip to content

How do I set the default model to a non OpenAI backend? #130

Closed Answered by nickanderson
nickanderson asked this question in Q&A
Discussion options

You must be logged in to vote

@nickanderson read the docs more thoroughly ...

https://github.com/karthink/gptel/blob/0192fa07f3f8d2d032b71acd1fae12755207dd76/README.org#ollama

Set this as the default value of gptel-backend:

;; OPTIONAL configuration
(setq-default gptel-model "mistral:latest" ;Pick your default model
              gptel-backend (gptel-make-gpt4all "Ollama" :host ...))

So, it appears that this does what I was looking for:

        (setq-default gptel-backend
                      (gptel-make-ollama
                       "Ollama"                               ;Any name of your choosing
                       :host "localhost:11434"                ;Where it's running
                       :models '("ze…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nickanderson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant