Skip to content

Commit 1924b19

Browse files
leezukarthink
authored andcommitted
README: Expand gptel-make-bedrock example
1 parent 391ab6c commit 1924b19

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

README.org

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -954,10 +954,14 @@ The above code makes the backend available to select. If you want it to be the
954954
Register a backend with
955955
#+begin_src emacs-lisp
956956
(gptel-make-bedrock "AWS"
957+
;; optionally enable streaming
958+
:stream t
957959
:region "ap-northeast-1"
958960
;; subset of gptel--bedrock-models
959-
:models '(claude-3-5-sonnet-20241022)
960-
;; optional for provisioned access
961+
:models '(claude-sonnet-4-20250514)
962+
;; Model region for cross-region inference profiles. Required for models such
963+
;; as Claude without on-demand throughput support. One of 'apac, 'eu or 'us.
964+
;; https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-use.html
961965
:model-region 'apac)
962966
#+end_src
963967

@@ -976,14 +980,18 @@ You can pick this backend from the menu when using gptel (see [[#usage][Usage]])
976980
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the value of =gptel-backend=. Use this instead of the above.
977981
#+begin_src emacs-lisp
978982
;; OPTIONAL configuration
979-
(setq gptel-model 'claude-3-5-sonnet-20241022
983+
(setq gptel-model 'claude-sonnet-4-20250514
980984
gptel-backend
981985
(gptel-make-bedrock "AWS"
982-
:region "ap-northeast-1"
983-
;; subset of gptel--bedrock-models
984-
:models '(claude-3-5-sonnet-20241022)
985-
;; optional
986-
:model-region 'apac))
986+
;; optionally enable streaming
987+
:stream t
988+
:region "ap-northeast-1"
989+
;; subset of gptel--bedrock-models
990+
:models '(claude-sonnet-4-20250514)
991+
;; Model region for cross-region inference profiles. Required for models such
992+
;; as Claude without on-demand throughput support. One of 'apac, 'eu or 'us.
993+
;; https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-use.html
994+
:model-region 'apac))
987995
#+end_src
988996

989997
#+html: </details>

0 commit comments

Comments
 (0)