Skip to content

Commit

Permalink
feat: 🎸 更新gptel
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonjoe committed Jul 10, 2024
1 parent 6d93711 commit e35b5ac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
5 changes: 5 additions & 0 deletions lisp/init-copilot-local.el
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
(expand-file-name (concat user-emacs-directory "lisp/copilot.el")))
(require 'copilot)

(use-package editorconfig
:ensure t
:config
(editorconfig-mode 1))

;; Copilot automatically provide completions
(add-hook 'prog-mode-hook 'copilot-mode)

Expand Down
19 changes: 8 additions & 11 deletions lisp/init-gptel-local.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,15 @@
;;; Code:
(require-package 'gptel)


;; OPTIONAL configuration
(setq
gptel-model "gpt-3.5-turbo"
gptel-backend (gptel-make-azure "Azure-1"
:protocol "https"
:host "chataiwho.openai.azure.com"
:endpoint "/openai/deployments/alison-azure/chat/completions?api-version=2023-05-15"
:stream t
:key "be727c6906d5447798647babf95c03ad"
:models '("gpt-3.5-turbo" "gpt-4"))
)
(setq gptel-backend (gptel-make-azure "Azure-1"
:protocol "https"
:host "chataiwho.openai.azure.com"
:endpoint "/openai/deployments/alison-azure/chat/completions?api-version=2023-05-15"
:stream t
:key "be727c6906d5447798647babf95c03ad"
:models '("gpt-3.5-turbo" "gpt-4"))
)

(provide 'init-gptel-local)
;;; init-gptel-local.el ends here
1 change: 0 additions & 1 deletion lisp/init-local.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
;;; Code:


(require-package 'use-package)
(require 'init-super-save-local)
(require 'init-auto-save-local)
(require 'init-yasnippet-local)
Expand Down

0 comments on commit e35b5ac

Please sign in to comment.