default service anthropic for org-ai for code interactions

This commit is contained in:
Levi Neely 2024-09-08 20:43:59 +02:00
parent a79d22954a
commit 1257e8cb4d
2 changed files with 13 additions and 1 deletions

View File

@ -725,8 +725,9 @@
(org-ai-global-mode)
(org-ai-install-yasnippets)
:config
(setq org-ai-service 'anthropic)
(setq org-ai-use-auth-source t)
(setq org-ai-default-chat-model "gpt-3.5-turbo"))
(setq org-ai-default-chat-model "claude-3-5-sonnet-20240620"))
@ -800,3 +801,5 @@
;;; init.el ends here
(add-hook 'prog-mode-hook #'yas-minor-mode)
(add-hook 'org-mode-hook #'yas-minor-mode)

View File

@ -0,0 +1,9 @@
;;; Compiled snippets and support files for `org-mode'
;;; Snippet definitions:
;;;
(yas-define-snippets 'org-mode
'(("aippx" "* ${1:What}\n\n#+begin_ai :service perplexity.ai :model llama-3.1-sonar-small-128k-online\n[SYS]: ${2:You are a helpful assistant.}\n\n[ME]: ${0}\n#+end_ai\n" "aippx" nil nil nil "/home/lkn/.config/emacs/snippets/org-mode/aippx" nil nil)
("aicld" "* ${1:What}\n\n#+begin_ai :service anthropic :model claude-3-5-sonnet-20240620\n[SYS]: ${2:You are a helpful assistant.}\n\n[ME]: ${0}\n#+end_ai\n" "aicld" nil nil nil "/home/lkn/.config/emacs/snippets/org-mode/aicld" nil nil)))
;;; Do not edit! File generated at Sun Sep 8 20:23:44 2024