Created
June 5, 2025 00:48
-
-
Save liangfu/e12a39b7057e1e6e87bf478cdfe48c76 to your computer and use it in GitHub Desktop.
Configure emacs to use gptel with Sonnet-3.7 on Bedrock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Configure emacs to use gptel with Sonnet-3.7 on Bedrock | |
(add-to-list 'load-path "/home/ubuntu/workspace/gptel") | |
(setq gptel-use-curl "/home/ubuntu/miniconda3/envs/py310/bin/curl") | |
(setq | |
gptel-model 'claude-3-7-sonnet-20250219 | |
gptel-backend (gptel-make-bedrock "AWS" | |
:region "us-west-2" | |
;; subset of gptel--bedrock-models | |
:models '(claude-3-7-sonnet-20250219) | |
;; optional for provisioned access | |
:model-region 'us | |
) | |
) | |
;; Key-bindings for gptel package integration | |
(global-set-key "\C-ca" 'gptel-add) | |
(global-set-key "\C-cs" 'gptel-send) | |
(global-set-key "\C-cr" 'gptel-rewrite) | |
(global-set-key "\C-cm" 'gptel-menu) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment