Use gptel directly from GitHub
Some checks failed
/ test (push) Failing after 13s

This commit is contained in:
Andrea Ciceri 2024-06-03 16:18:26 +02:00
parent 4995f33591
commit 31cefcba21
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
3 changed files with 13 additions and 7 deletions

View file

@ -30,6 +30,11 @@
url = "github:firmart/notmuch-notify"; url = "github:firmart/notmuch-notify";
flake = false; flake = false;
}; };
# TODO remove when there will be a new release including GPT-4o
extra-package-gptel = {
url = "github:karthink/gptel";
flake = false;
};
}; };
outputs = inputs @ {flake-parts, ...}: outputs = inputs @ {flake-parts, ...}:

12
init.el
View file

@ -820,12 +820,12 @@ This is meant to be an helper to be called from the window manager."
(insert response))))))) (insert response)))))))
) )
(use-package copilot ;; (use-package copilot
:custom ;; :custom
(copilot-max-char -1) ;; (copilot-max-char -1)
(copilot-indent-offset-warning-disable 't) ;; (copilot-indent-offset-warning-disable 't)
:hook (prog-mode org-mode) ;; :hook (prog-mode org-mode)
:bind (("C-<tab>" . copilot-accept-completion))) ;; :bind (("C-<tab>" . copilot-accept-completion)))
(use-package pass (use-package pass
:config :config

View file

@ -6,6 +6,7 @@ pkgs: epkgs: let
indent-bars = [elpaPackages.compat]; indent-bars = [elpaPackages.compat];
copilot = [melpaPackages.editorconfig melpaPackages.dash melpaPackages.s melpaPackages.f]; copilot = [melpaPackages.editorconfig melpaPackages.dash melpaPackages.s melpaPackages.f];
notmuch-notify = [melpaPackages.alert melpaPackages.notmuch]; notmuch-notify = [melpaPackages.alert melpaPackages.notmuch];
gptel = [pkgs.emacsPackages.transient elpaPackages.compat];
}; };
overrideAttrsPerPackage = { }; overrideAttrsPerPackage = { };
@ -93,7 +94,7 @@ pkgs: epkgs: let
poly-org poly-org
casual casual
# org-re-reveal # FIXME very not nice hash mismatch when building # org-re-reveal # FIXME very not nice hash mismatch when building
gptel # gptel # TODO uncomment when there will be a new release including GPT-4o
]) ++ (with elpaPackages; [ ]) ++ (with elpaPackages; [
delight delight
kind-icon kind-icon