You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using AWS Bedrock models. I am required to use IAM credentials that expire in one hour. Everything works great until the credentials expire. At that point I get
litellm.APIConnectionError: BedrockException - b'{"message":"The security token included in the request is expired"}'
Retrying in 0.2 seconds...
I expected that I would be able to just refresh the credentials, where these updated values get written to ~/aws/config.
What I observe is that refreshing the credentials still gives the same error. It appears that the credentials are cached, which causes me to have to completely exit aider and start again.
Version and model info
architect> /settings
Aider v0.77.0
Main model: bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0 with architect edit format, infinite output
Editor model: bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0 with editor-diff edit format
Weak model: bedrock/us.anthropic.claude-3-5-haiku-20241022-v1:0
Git repo: .git with 41 files
Repo-map: using 4096 tokens, auto refresh
Added ../../../../../private/var/folders/bp/j3jhljb56rbf7qw9qhh60_n00000gp/T/tmpbtkgg659/clipboard_image.png to the chat.
Added ui/groupphotos.go to the chat.
Added ui/groupphotos_test.go to the chat.
Added ui/main.go to the chat.
Added CONVENTIONS.md to the chat (read-only).
Added project_docs/groupphotodesign.md to the chat (read-only).
Restored previous conversation history.
Config File (/Volumes/ExternalHome/src/personal/glimmer/.aider.conf.yml):
model: bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0
openai-api-base: https://glhf.chat/api/openai/v1
read: ['CONVENTIONS.md']
architect: True
auto-commits: False
attribute-committer:True
attribute-commit-message-author:True
attribute-author: True
test-cmd: go test ./...
auto-test: True
Defaults:
--set-env: []
--api-key: []
--model-settings-file:.aider.model.settings.yml
--model-metadata-file:.aider.model.metadata.json
--cache-keepalive-pings:0
--map-refresh: auto
--map-multiplier-no-files:2
--input-history-file:/Volumes/ExternalHome/src/personal/glimmer/.aider.input.history
--chat-history-file:/Volumes/ExternalHome/src/personal/glimmer/.aider.chat.history.md
--user-input-color:#00cc00
--tool-error-color:#FF2222
--tool-warning-color:#FFA500
--assistant-output-color:#0088ff
--code-theme: default
--aiderignore: /Volumes/ExternalHome/src/personal/glimmer/.aiderignore
--lint-cmd: []
--voice-format: wav
--voice-language: en
--encoding: utf-8
--line-endings: platform
--env-file: /Volumes/ExternalHome/src/personal/glimmer/.env
Issue
I am using AWS Bedrock models. I am required to use IAM credentials that expire in one hour. Everything works great until the credentials expire. At that point I get
I expected that I would be able to just refresh the credentials, where these updated values get written to
~/aws/config
.What I observe is that refreshing the credentials still gives the same error. It appears that the credentials are cached, which causes me to have to completely exit aider and start again.
Version and model info
architect> /settings
Aider v0.77.0
Main model: bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0 with architect edit format, infinite output
Editor model: bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0 with editor-diff edit format
Weak model: bedrock/us.anthropic.claude-3-5-haiku-20241022-v1:0
Git repo: .git with 41 files
Repo-map: using 4096 tokens, auto refresh
Added ../../../../../private/var/folders/bp/j3jhljb56rbf7qw9qhh60_n00000gp/T/tmpbtkgg659/clipboard_image.png to the chat.
Added ui/groupphotos.go to the chat.
Added ui/groupphotos_test.go to the chat.
Added ui/main.go to the chat.
Added CONVENTIONS.md to the chat (read-only).
Added project_docs/groupphotodesign.md to the chat (read-only).
Restored previous conversation history.
Config File (/Volumes/ExternalHome/src/personal/glimmer/.aider.conf.yml):
model: bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0
openai-api-base: https://glhf.chat/api/openai/v1
read: ['CONVENTIONS.md']
architect: True
auto-commits: False
attribute-committer:True
attribute-commit-message-author:True
attribute-author: True
test-cmd: go test ./...
auto-test: True
Defaults:
--set-env: []
--api-key: []
--model-settings-file:.aider.model.settings.yml
--model-metadata-file:.aider.model.metadata.json
--cache-keepalive-pings:0
--map-refresh: auto
--map-multiplier-no-files:2
--input-history-file:/Volumes/ExternalHome/src/personal/glimmer/.aider.input.history
--chat-history-file:/Volumes/ExternalHome/src/personal/glimmer/.aider.chat.history.md
--user-input-color:#00cc00
--tool-error-color:#FF2222
--tool-warning-color:#FFA500
--assistant-output-color:#0088ff
--code-theme: default
--aiderignore: /Volumes/ExternalHome/src/personal/glimmer/.aiderignore
--lint-cmd: []
--voice-format: wav
--voice-language: en
--encoding: utf-8
--line-endings: platform
--env-file: /Volumes/ExternalHome/src/personal/glimmer/.env
Option settings:
The text was updated successfully, but these errors were encountered: