mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 13:03:42 +00:00
fix(ai): move AWS_BEDROCK_SKIP_AUTH inside Node.js environment check
The process.env access was outside the typeof process check, which would throw in browser environments. Moved inside the Node.js/Bun block for consistency with other env var access. Also added changelog entry for #1320 and improved docs clarity.
This commit is contained in:
parent
df527fb988
commit
a40bf5fbd5
3 changed files with 16 additions and 13 deletions
|
|
@ -140,17 +140,16 @@ Also supports ECS task roles (`AWS_CONTAINER_CREDENTIALS_*`) and IRSA (`AWS_WEB_
|
|||
pi --provider amazon-bedrock --model us.anthropic.claude-sonnet-4-20250514-v1:0
|
||||
```
|
||||
|
||||
If you are connecting to a bedrock API proxy, the following environment variables can be used
|
||||
instead:
|
||||
If you are connecting to a Bedrock API proxy, the following environment variables can be used:
|
||||
|
||||
```bash
|
||||
# Set the URL for the bedrock proxy
|
||||
export AWS_ENDPOINT_URL_BEDROCK_RUNTIME
|
||||
# Set the URL for the Bedrock proxy (standard AWS SDK env var)
|
||||
export AWS_ENDPOINT_URL_BEDROCK_RUNTIME=https://my.corp.proxy/bedrock
|
||||
|
||||
# Set if your proxy does not require authentication
|
||||
export AWS_BEDROCK_SKIP_AUTH=1
|
||||
|
||||
# Set if your proxy only supports HTTP 1.1
|
||||
# Set if your proxy only supports HTTP/1.1
|
||||
export AWS_BEDROCK_FORCE_HTTP1=1
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue