Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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 as default backend #297

Closed
asanchez75 opened this issue Apr 27, 2024 · 1 comment
Closed

Ollama as default backend #297

asanchez75 opened this issue Apr 27, 2024 · 1 comment

Comments

@asanchez75
Copy link

Hello,

Here is a snippet for the init.el file to set Ollama as default backend. It might be useful for someone.

(use-package gptel
 :config
 (setq gptel-default-mode 'org-mode)
 ;; default backend
 (setq gptel-backend (gptel-make-ollama "Ollama"             
  :host "localhost:11434"               
  :stream t                             
  :models '("llama3" 
            "mistral:v0.2" 
            "phi3"
            "gemma"
            "biomistral"
            )))        
 ;(setq! gptel-api-key "your key")
 )

@karthink
Copy link
Owner

@asanchez75 Thank you. Note that the README already contains snippets like the above to set each backend as the default, including Ollama.

Repository owner locked and limited conversation to collaborators Apr 28, 2024
@karthink karthink converted this issue into discussion #298 Apr 28, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants