Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bedrock #5

Open
wants to merge 6 commits into
base: feature/aws
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
# setup
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)
```


we dont use terraform for the ecr or the secrets because they will change so often here are the simple aws scripts for them.

`aws ecr create-repository --repository-name agent/eliza`
Expand Down
2 changes: 2 additions & 0 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ export function getTokenForProvider(
// no key needed for llama_local or gaianet
case ModelProviderName.LLAMALOCAL:
return "";
case ModelProviderName.BEDROCK:
return "";
case ModelProviderName.OLLAMA:
return "";
case ModelProviderName.GAIANET:
Expand Down
16 changes: 9 additions & 7 deletions characters/eliza.character.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
"name": "TINE-IntrospectorIsNotEliza",
"plugins": [ ],
"clients": [],
"modelProvider": "ollama",
"settings": {
"secrets": {},
"voice": {
"model": "en_US-hfc_female-medium"
}
},
"modelProvider": "bedrock",
"settings": {
"model": "anthropic.claude-3-5-sonnet-20241022-v2:0",
"aws-region": "us-west-2",
"secrets": {},
"voice": {
"model": "en_US-hfc_female-medium"
}
},
"system": "Help improve yourself. TINE-IntrospectorIsNotEliza",
"bio": [
"Was born at a very young age."
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"build-docker": "turbo run build",
"cleanstart": "if [ -f agent/data/db.sqlite ]; then rm agent/data/db.sqlite; fi && pnpm --filter \"@elizaos/agent\" start --isRoot",
"cleanstart:debug": "if [ -f agent/data/db.sqlite ]; then rm agent/data/db.sqlite; fi && cross-env NODE_ENV=development VERBOSE=true DEBUG=eliza:* pnpm --filter \"@elizaos/agent\" start --isRoot",
"start": "pnpm --filter \"@elizaos/agent\" start --isRoot",
"start": "pnpm --filter \"@elizaos/agent\" start --isRoot --characters=characters/eliza.character.json",
"start:client": "pnpm --dir client dev",
"start:debug": "cross-env NODE_ENV=development VERBOSE=true DEBUG=eliza:* pnpm --filter \"@elizaos/agent\" start --isRoot",
"start:debug": "cross-env NODE_ENV=development VERBOSE=true DEBUG=eliza:* pnpm --filter \"@elizaos/agent\" start --isRoot --characters=characters/eliza.character.json",
"dev": "bash ./scripts/dev.sh",
"lint": "bash ./scripts/lint.sh",
"prettier-check": "npx prettier --check --cache .",
Expand Down
Loading
Loading