Link: Engineering AI
;; Copilot (use-package copilot :ensure t :quelpa (copilot :fetcher github :repo âcopilot-emacs/copilot.elâ :branch âmainâ :files (â*.elâ)) :init (global-copilot-mode) (define-key copilot-completion-map (kbd â<backtab>â) âcopilot-accept-completion))
(use-package gptel :ensure t :config (setq gptel-api-key (getenv âOPENAI_API_KEYâ)) (gptel-make-ollama âOllamaâ :host âlocalhost:11434â :stream t :models â(âllama2:latestâ)))
âaiâ â(:ignore t :which-key âAIâ) âai>â â(gptel-send :which-key âSend Lineâ) âaigâ â(gptel :which-key âGPT Bufferâ) âaimâ â(gptel-menu :which-key âGPT Menuâ) âairâ â(gptel-rewrite :which-key âRewriteâ) âai+â â(gptel-add :which-key âAddâ) âai!â â(gptel-add-file :which-key âAdd Fileâ) âainâ â(gptelârewrite-next :which-key âRewrite Nextâ) âaipâ â(gptelârewrite-previous :which-key âRewrite Previousâ)