Skip to content

Commit 853a7f5

Browse files
committed
update readme
1 parent d1400c2 commit 853a7f5

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@
6363
- gptel now handles Ollama models that return both reasoning content
6464
and tool calls in a single request.
6565

66+
- ~gptel-make-bedrock~ now accepts an optional ~:profile~ parameter to specify
67+
an AWS profile directly. A profile set this way overrides any AWS
68+
authentication related environment variables, providing a clean method for
69+
configuring Bedrock backends without relying on environment variables.
70+
6671
* 0.9.8.5 2025-06-11
6772

6873
** Breaking changes

README.org

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,14 +1053,17 @@ Register a backend with
10531053
;; Model region for cross-region inference profiles. Required for models such
10541054
;; as Claude without on-demand throughput support. One of 'apac, 'eu or 'us.
10551055
;; https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-use.html
1056-
:model-region 'apac)
1056+
:model-region 'apac
1057+
;; optionally specify AWS profile
1058+
:profile "my-aws-profile")
10571059
#+end_src
10581060

1059-
The Bedrock backend gets your AWS credentials from the environment variables. It expects to find either
1060-
~AWS_ACCESS_KEY_ID~, ~AWS_SECRET_ACCESS_KEY~, ~AWS_SESSION_TOKEN~ (optional), or if present, can use ~AWS_PROFILE~ to get these directly from the ~aws~ cli.
1061+
The Bedrock backend resolves AWS credentials using the following priority:
1062+
1. An AWS profile specified via the ~:profile~ parameter.
1063+
2. An AWS profile from the ~AWS_PROFILE~ environment variable.
1064+
3. Direct credentials from the ~AWS_ACCESS_KEY_ID~ and ~AWS_SECRET_ACCESS_KEY~ environment variables. The ~AWS_SESSION_TOKEN~ variable is also used if available.
10611065

1062-
NOTE: The Bedrock backend needs curl >= 8.5 in order for the sigv4 signing to work properly,
1063-
https://github.com/curl/curl/issues/11794
1066+
NOTE: The Bedrock backend needs curl >= 8.5 in order for the sigv4 signing to work properly, https://github.com/curl/curl/issues/11794
10641067

10651068
An error will be signalled if ~gptel-curl~ is ~NIL~.
10661069

@@ -1082,7 +1085,9 @@ The above code makes the backend available to select. If you want it to be the
10821085
;; Model region for cross-region inference profiles. Required for models such
10831086
;; as Claude without on-demand throughput support. One of 'apac, 'eu or 'us.
10841087
;; https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-use.html
1085-
:model-region 'apac))
1088+
:model-region 'apac
1089+
;; optionally specify AWS profile
1090+
:profile "my-aws-profile"))
10861091
#+end_src
10871092

10881093
#+html: </details>

0 commit comments

Comments
 (0)