Skip to content

Commit 6e8b357

Browse files
author
mike dupont
committed
first start of running
first you need to accept the license etc from aws anthropic etc. this works only in region us west, and still does not work 100% the error is ["፧ Initializing Bedrock model."] ⛔ ERRORS Error in generateText: {"name":"ValidationException","$fault":"client","$metadata":{"httpStatusCode":400,"requestId":"30292ec9-a8b8-40f9-b904-ca56140bf25f","attempts":1,"totalRetryDelay":0}} ⛔ ERRORS ERROR: {"name":"ValidationException","$fault":"client","$metadata":{"httpStatusCode":400,"requestId":"30292ec9-a8b8-40f9-b904-ca56140bf25f","attempts":1,"totalRetryDelay":0}} ["፧ Retrying..."] so i think that might be the parameters. export AWS_REGION=us-west-2 you need to requst access to the models in aws. not all the models are available everywhere, using us-west-2 https://us-west-2.console.aws.amazon.com/bedrock/home?region=us-west-2#/modelaccess list model `aws bedrock list-foundation-models` install aws cli new ``` curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update ``` ``` eval $(/usr/local/aws-cli/v2/current/bin/aws configure export-credentials --profile default --format env) ```
1 parent 7567269 commit 6e8b357

File tree

2 files changed

+28
-6
lines changed

2 files changed

+28
-6
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
# setup
2+
export AWS_REGION=us-west-2
3+
4+
you need to requst access to the models in aws. not all the models are available everywhere, using us-west-2
5+
6+
https://us-west-2.console.aws.amazon.com/bedrock/home?region=us-west-2#/modelaccess
7+
8+
list model
9+
`aws bedrock list-foundation-models`
10+
11+
install aws cli new ```
12+
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
13+
unzip awscliv2.zip
14+
sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update
15+
```
16+
17+
```
18+
eval $(/usr/local/aws-cli/v2/current/bin/aws configure export-credentials --profile default --format env)
19+
```
20+
21+
222
we dont use terraform for the ecr or the secrets because they will change so often here are the simple aws scripts for them.
323
424
`aws ecr create-repository --repository-name agent/eliza`

characters/eliza.character.json

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
"plugins": [ ],
44
"clients": [],
55
"modelProvider": "bedrock",
6-
"settings": {
7-
"secrets": {},
8-
"voice": {
9-
"model": "en_US-hfc_female-medium"
10-
}
11-
},
6+
"settings": {
7+
"model": "anthropic.claude-3-5-sonnet-20241022-v2:0",
8+
"aws-region": "us-west-2",
9+
"secrets": {},
10+
"voice": {
11+
"model": "en_US-hfc_female-medium"
12+
}
13+
},
1214
"system": "Help improve yourself. TINE-IntrospectorIsNotEliza",
1315
"bio": [
1416
"Was born at a very young age."

0 commit comments

Comments
 (0)