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: Update main for v0.1.6-alpha.5 #1290

Merged
merged 178 commits into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
Changes from 176 commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
8824041
Increase delay to avoid CI/CD timeouts
jzvikart Dec 16, 2024
6424c39
Refactoring
jzvikart Dec 16, 2024
9b0302c
Wait for server to start
jzvikart Dec 16, 2024
87f862f
Fixes
jzvikart Dec 16, 2024
a439407
Cleanup
jzvikart Dec 16, 2024
11eff66
Get stopAgent() to work as expected
jzvikart Dec 16, 2024
e5fb5d5
Cleanup
jzvikart Dec 16, 2024
3fab472
Avoid using console.clear() to preserve messages for debugging
jzvikart Dec 16, 2024
5ba2470
Merge branch 'develop' of github.com:ai16z/eliza into new_docs
madjin Dec 16, 2024
9888ced
Merge remote-tracking branch 'ai16z/develop' into realitySpiral/integ…
jzvikart Dec 17, 2024
e90263f
Remove dependency zx
jzvikart Dec 17, 2024
6d24565
Minor cleanup
jzvikart Dec 17, 2024
c558ad6
Disable logging of fetch requests to avoid disclosing sensitive infor…
jzvikart Dec 17, 2024
22220c2
update community docs
madjin Dec 17, 2024
3e736ea
allow multiple bots to join the voice channel
tcm390 Dec 17, 2024
68b02e6
Merge pull request #1156 from ai16z/tcm-discord-multiple-bot
shakkernerd Dec 17, 2024
dc392ec
fix: print commands to start the client and remove unused --non-itera…
yang-han Dec 17, 2024
6dbbfab
Merge pull request #1163 from yang-han/fix_client
monilpat Dec 17, 2024
92e936f
Fix typo
thomasWos Dec 17, 2024
7d3e669
docs: Update "What Did You Get Done This Week? 5" spaces notes
YoungPhlo Dec 17, 2024
969db65
Change CI trigger to 'pull_request'
jzvikart Dec 17, 2024
9eabb29
allow multiple bots to join the voice channel
tcm390 Dec 17, 2024
5eb5514
fix: print commands to start the client and remove unused --non-itera…
yang-han Dec 17, 2024
4ebb802
Merge branch 'develop' into main
odilitime Dec 17, 2024
9012a0c
Merge pull request #1170 from thomasWos/main
odilitime Dec 17, 2024
2494c7c
Merge branch 'develop' into docs/community-streams
odilitime Dec 17, 2024
70583c7
Merge pull request #1174 from YoungPhlo/docs/community-streams
odilitime Dec 17, 2024
45ec8ff
Fix client.push issue and update README for Slack client verification
SumeetChougule Dec 17, 2024
1867bc3
test: adding tests for runtime.ts. Modified README since we switched …
ai16z-demirix Dec 17, 2024
0e1770b
fixed CONTRIBUTING.md file Issue: 1048
ileana-pr Dec 18, 2024
1efc6f0
Merge branch 'develop' of github.com:ai16z/eliza into new_docs
madjin Dec 18, 2024
e660791
Merge pull request #1191 from ileana-pr/main
monilpat Dec 18, 2024
fa5b7bd
Merge branch 'develop' into main
monilpat Dec 18, 2024
855c029
Merge pull request #1190 from ai16z-demirix/main
monilpat Dec 18, 2024
28b46af
Update README_CN.md
tomguluson92 Dec 18, 2024
3405828
docs(cn): add python2.7
9547 Dec 18, 2024
7b9c285
docs(cn): rm duplicated -
9547 Dec 18, 2024
be74341
Merge remote-tracking branch 'ai16z/develop' into jure/integration-tests
jzvikart Dec 18, 2024
1aee80d
Fix: optional chaining on search to prevent error when search is unco…
netdragonx Dec 18, 2024
68a6dfe
Write summary file before trying to cache it
tobbelobb Dec 18, 2024
eecb77f
gitpod cicd bug
v1xingyue Dec 18, 2024
1781ae1
Merge pull request #1177 from Sifchain/jure/integration-tests
shakkernerd Dec 18, 2024
502d4a1
Update README.md
marcNY Dec 18, 2024
90c84be
Delete scripts/gettweets.mjs
danbednarski Dec 18, 2024
b3ebb3c
Merge pull request #1201 from 9547/doc-cn
odilitime Dec 18, 2024
b306266
Merge branch 'develop' into main
odilitime Dec 18, 2024
d1bdf00
Merge pull request #1207 from v1xingyue/v1xingyue-patch-1
odilitime Dec 18, 2024
a01157f
Merge branch 'develop' into patch-1
odilitime Dec 18, 2024
4e27c73
Merge pull request #1209 from marcNY/patch-1
odilitime Dec 18, 2024
a4f4123
add missing change directories
odilitime Dec 18, 2024
6045011
Merge branch 'develop' into patch-1
odilitime Dec 18, 2024
46e34be
Merge pull request #1196 from tomguluson92/patch-1
odilitime Dec 18, 2024
f79c9cd
fixed gitignore
SumeetChougule Dec 18, 2024
721b4d4
add wip docs
madjin Dec 18, 2024
2c432a3
Merge branch 'develop'
SumeetChougule Dec 18, 2024
d194bcb
Merge branch 'develop' of github.com:ai16z/eliza into new_docs
madjin Dec 18, 2024
3c61dd7
update api docs
madjin Dec 18, 2024
962d1b9
Merge pull request #1211 from ai16z/new_docs
monilpat Dec 18, 2024
21ed0f2
fix: fail when cannot get token, add Akash to generateText switch
vpavlin Dec 18, 2024
646acea
Improve generation prompt
cygaar Dec 18, 2024
d8f80bf
Rename gettweets-copy.mjs to gettweets.mjs
danbednarski Dec 18, 2024
f07efc9
Delete scripts/tweetextractor.mjs
danbednarski Dec 18, 2024
7aa0902
Update
cygaar Dec 18, 2024
3c230b4
postgres needs the user to exist before you can add a participant
odilitime Dec 18, 2024
d3d6198
Merge pull request #1217 from cygaar/improve_twitter
cygaar Dec 19, 2024
6b25b8c
support image message
tcm390 Dec 19, 2024
98fbe39
check content type
tcm390 Dec 19, 2024
7ac6616
correct content type
tcm390 Dec 19, 2024
97d474f
Merge branch 'main' into postgres-fix
odilitime Dec 19, 2024
e47b1d9
clean code
tcm390 Dec 19, 2024
cd5fc2f
handle http image
tcm390 Dec 19, 2024
392efc6
Merge pull request #1220 from ai16z/tcm-telegram-image
monilpat Dec 19, 2024
21c63c4
Merge pull request #1219 from odilitime/postgres-fix
monilpat Dec 19, 2024
b8f9d81
feat: CircuitBreaker.ts
tomguluson92 Dec 19, 2024
92ddabb
feat: add parse mode, support telebot output in markdown
simpletrontdip Dec 19, 2024
bb5caa5
Merge branch 'develop' into patch-2
shakkernerd Dec 19, 2024
50ef711
Merge pull request #1226 from tomguluson92/patch-2
shakkernerd Dec 19, 2024
d8f9001
Merge branch 'develop' into twitter-credentials
shakkernerd Dec 19, 2024
76960dd
Merge pull request #1218 from danbednarski/twitter-credentials
shakkernerd Dec 19, 2024
97b5d15
feat: include akash to handleProvider
shakkernerd Dec 19, 2024
31b2b25
Merge branch 'develop' into fix/akash
shakkernerd Dec 19, 2024
f500c8d
Merge branch 'develop' into enhance-tele-client
simpletrontdip Dec 19, 2024
d990859
Merge pull request #1214 from vpavlin/fix/akash
shakkernerd Dec 19, 2024
86005ad
Merge pull request #1229 from simpletrontdip/enhance-tele-client
shakkernerd Dec 19, 2024
43699ba
fix type in french Readme
azurwastaken Dec 19, 2024
84bdd46
Update README_ES.md
azurwastaken Dec 19, 2024
37fb32f
Update README_IT.md
azurwastaken Dec 19, 2024
b7eca66
Merge branch 'develop' into fix/typo
azurwastaken Dec 19, 2024
3a9586e
Enhance terminology in the project for clarity and inclusivity
yjshi2015 Dec 19, 2024
ea61561
Fix: Sync UI Client with server port env
jonathangus Dec 19, 2024
a4f20db
Fix visibility issue github image cicd
luisalrp Dec 19, 2024
80a1b83
treat twitterShouldRespondTemplate as string
tcm390 Dec 19, 2024
fe3afef
feat: make twitter retry limit a env
renlulu Dec 19, 2024
8046d29
chore: env update
renlulu Dec 19, 2024
c905d7c
feat: make express payload limit configurable
renlulu Dec 19, 2024
370ea70
Merge branch 'develop' into feat/env-twitter-retry
renlulu Dec 19, 2024
4004a02
Merge branch 'develop' into feat/express-payload-config
renlulu Dec 19, 2024
832a274
Update generation.ts
tomguluson92 Dec 19, 2024
db43e13
Update index.ts
tomguluson92 Dec 19, 2024
85c3af4
Update .env.example
tomguluson92 Dec 19, 2024
5c9b4ff
handle llama_local getTokenForProvider properly
odilitime Dec 19, 2024
1edb372
Merge pull request #1244 from renlulu/feat/env-twitter-retry
monilpat Dec 19, 2024
90a6b91
Merge branch 'develop' into develop
monilpat Dec 19, 2024
6cb9134
Merge pull request #1239 from jonathangus/develop
monilpat Dec 19, 2024
d552cf8
Merge branch 'develop' into fix/typo
monilpat Dec 19, 2024
bb82b05
Merge pull request #1236 from azurwastaken/fix/typo
monilpat Dec 19, 2024
c98840c
Merge branch 'develop' into main
monilpat Dec 19, 2024
2f157b6
Merge pull request #1237 from yjshi2015/main
monilpat Dec 19, 2024
08a5aad
Merge branch 'develop' into tcm-twitter-character-template-issue
monilpat Dec 19, 2024
4dd6d89
Merge branch 'develop' into feat/express-payload-config
monilpat Dec 19, 2024
f4e781c
Merge branch 'develop' into fix-cicd-package-visibility
monilpat Dec 19, 2024
5a023c7
Merge pull request #1243 from luisalrp/fix-cicd-package-visibility
monilpat Dec 19, 2024
34a04ba
Merge pull request #1242 from ai16z/tcm-twitter-character-template-issue
monilpat Dec 19, 2024
9b25e9a
Merge branch 'develop' into feat/express-payload-config
monilpat Dec 19, 2024
cb0fad1
Merge branch 'develop' into main
monilpat Dec 19, 2024
da405cd
Merge pull request #1202 from netdragonx/main
monilpat Dec 19, 2024
31b336f
Merge branch 'develop' into feat/express-payload-config
monilpat Dec 19, 2024
800cd0d
Merge pull request #1245 from renlulu/feat/express-payload-config
monilpat Dec 19, 2024
a6f4bf6
Merge branch 'develop' into fix-ll
monilpat Dec 19, 2024
2d04d80
Merge pull request #1250 from odilitime/fix-ll
monilpat Dec 19, 2024
93ebd19
Update trump.character.json
lalalune Dec 19, 2024
e97cac5
doc: add Twitter automation label notice (#1253)
julienbrs Dec 19, 2024
c4cfb8d
Merge pull request #1254 from julienbrs/1253--add-twitter-automation-…
monilpat Dec 19, 2024
8c0709c
Merge pull request #1252 from ai16z/lalalune-patch-1
monilpat Dec 19, 2024
d331665
mapping claude vertex
Dec 20, 2024
e6de3a5
Merge pull request #1258 from ai16z/tcm-claude-vertext-miss
shakkernerd Dec 20, 2024
2217ac0
Merge pull request #1246 from tomguluson92/tomguluson92-patch-2
odilitime Dec 20, 2024
2d8d74a
feat: add README_DE.md in docs directory
derRizzMeister Dec 20, 2024
242052b
Merge branch 'develop' into main
monilpat Dec 20, 2024
ea8cfb3
Merge pull request #1262 from derRizzMeister/main
monilpat Dec 20, 2024
9948cdf
Ignore agent content
tobbelobb Dec 20, 2024
03e2c00
fix: fix ENABLE_ACTION_PROCESSING logic
oxSaturn Dec 20, 2024
5db1a10
fix: pnpm lockfile
shakkernerd Dec 20, 2024
055f6cb
Merge pull request #1273 from ai16z/fix/pnpm-lockfile
shakkernerd Dec 20, 2024
48956ec
Revert "fix: pnpm lockfile"
shakkernerd Dec 20, 2024
a21b124
Merge pull request #1275 from ai16z/revert-1273-fix/pnpm-lockfile
shakkernerd Dec 20, 2024
abbd7b8
feat: init adapter base files
shakkernerd Dec 20, 2024
2756c09
chore: install ioredis package
shakkernerd Dec 20, 2024
2bfed97
feat: redis client base class
shakkernerd Dec 20, 2024
4b1c217
feat: add redis url param
shakkernerd Dec 20, 2024
fe3bd8c
chore: add ioredis types
shakkernerd Dec 20, 2024
bbaff28
chore: pnpm lock file
shakkernerd Dec 20, 2024
2514be3
fix: console -> elizaLogger
shakkernerd Dec 20, 2024
efac71d
fix build phase when pnpm-lock is cleared
odilitime Dec 20, 2024
78dd9f1
Merge pull request #1182 from SumeetChougule/main
odilitime Dec 20, 2024
5cf3d7a
Merge branch 'develop' into main
odilitime Dec 20, 2024
e201228
Merge pull request #1205 from tobbelobb/main
odilitime Dec 20, 2024
db8db28
Merge branch 'develop' into fix/ENABLE_ACTION_PROCESSING
odilitime Dec 20, 2024
f3538d0
Merge pull request #1268 from oxSaturn/fix/ENABLE_ACTION_PROCESSING
odilitime Dec 20, 2024
733c7b0
chore: pnpm lock file
shakkernerd Dec 20, 2024
b5dc632
Merge branch 'develop' into fix-ts
odilitime Dec 20, 2024
5888867
Merge pull request #1283 from odilitime/fix-ts
shakkernerd Dec 20, 2024
7882d47
Merge branch 'develop' into feat/redis_adapter
shakkernerd Dec 20, 2024
d18c4a8
Merge branch 'develop' into feat/redis_adapter
shakkernerd Dec 20, 2024
d5ac3c5
remove unneeded package that PR1182 added
odilitime Dec 21, 2024
7441cf8
remove slack added by PR1182
odilitime Dec 21, 2024
227fcdf
Merge pull request #1289 from odilitime/fix-dev
shakkernerd Dec 21, 2024
bc6d390
fix integrationTests.yaml to properly use repo env vars
twilwa Dec 21, 2024
4a1fd97
Merge branch 'develop' into feat/redis_adapter
shakkernerd Dec 21, 2024
14beb8e
Merge branch 'develop' of https://github.com/ai16z/eliza into develop
twilwa Dec 21, 2024
e0c72a4
Merge pull request #1279 from ai16z/feat/redis_adapter
shakkernerd Dec 21, 2024
34687ef
Merge branch 'develop' into fix/integration-fix
shakkernerd Dec 21, 2024
7a59ec3
Merge pull request #1291 from ai16z/fix/integration-fix
shakkernerd Dec 21, 2024
f6ecd55
fix: pnpm lock file
shakkernerd Dec 21, 2024
907c5a5
Merge pull request #1292 from ai16z/fix/pnpm-lockfile
shakkernerd Dec 21, 2024
0eb98a3
fix: add missing claude vertex case to handleProvider
shakkernerd Dec 21, 2024
dfab4c1
Merge pull request #1293 from ai16z/patch/handle_provider
shakkernerd Dec 21, 2024
3c837a0
output checkable variable for conditional
twilwa Dec 21, 2024
c5fa929
feat: types for Cache Store
shakkernerd Dec 21, 2024
fcfb1e6
chore: add adapter-redis package
shakkernerd Dec 21, 2024
1275946
feat: add cache env to env example
shakkernerd Dec 21, 2024
5b18091
chore: pnpm lock file
shakkernerd Dec 21, 2024
0508c2d
feat: add support for redis cache
shakkernerd Dec 21, 2024
ddb7684
Merge pull request #1294 from ai16z/fix/integration-tests
shakkernerd Dec 21, 2024
20b4c74
Merge branch 'develop' into feat/agent_redis_support
shakkernerd Dec 21, 2024
a1515d8
Merge pull request #1295 from ai16z/feat/agent_redis_support
shakkernerd Dec 21, 2024
db86aee
chore: bump version to 0.1.6-alpha.5
shakkernerd Dec 21, 2024
bb87d8d
Merge pull request #1296 from ai16z/new_version_0.1.6-alpha5
shakkernerd Dec 21, 2024
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
11 changes: 11 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Cache Configs
CACHE_STORE=database # Defaults to database. Other available cache store: redis and filesystem
REDIS_URL= # Redis URL - could be a local redis instance or cloud hosted redis. Also support rediss:// urls

# Discord Configuration
DISCORD_APPLICATION_ID=
DISCORD_API_TOKEN= # Bot token
Expand Down Expand Up @@ -34,6 +38,9 @@ LARGE_HYPERBOLIC_MODEL= # Default: meta-llama/Meta-Llama-3.1-405-Instruc
# Speech Synthesis
ELEVENLABS_XI_API_KEY= # API key from elevenlabs

# Direct Client Setting
EXPRESS_MAX_PAYLOAD= # Default: 100kb

# ElevenLabs Settings
ELEVENLABS_MODEL_ID=eleven_multilingual_v2
ELEVENLABS_VOICE_ID=21m00Tcm4TlvDq8ikWAM
Expand All @@ -55,6 +62,7 @@ TWITTER_COOKIES= # Account cookies
TWITTER_POLL_INTERVAL=120 # How often (in seconds) the bot should check for interactions
TWITTER_SEARCH_ENABLE=FALSE # Enable timeline search, WARNING this greatly increases your chance of getting banned
TWITTER_TARGET_USERS= # Comma separated list of Twitter user names to interact with
TWITTER_RETRY_LIMIT= # Maximum retry attempts for Twitter login

X_SERVER_URL=
XAI_API_KEY=
Expand Down Expand Up @@ -257,6 +265,9 @@ LARGE_AKASH_CHAT_API_MODEL= # Default: Meta-Llama-3-1-405B-Instruct-FP8
FAL_API_KEY=
FAL_AI_LORA_PATH=

# Web search API Configuration
TAVILY_API_KEY=

# WhatsApp Cloud API Configuration
WHATSAPP_ACCESS_TOKEN= # Permanent access token from Facebook Developer Console
WHATSAPP_PHONE_NUMBER_ID= # Phone number ID from WhatsApp Business API
Expand Down
103 changes: 56 additions & 47 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,53 +9,62 @@ on:

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
build-and-push-image:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
attestations: write
id-token: write
#
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
- name: Build and push Docker image
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

build-and-push-image:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
attestations: write
id-token: write
#
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
- name: Build and push Docker image
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

# This step makes the Docker image public, so users can pull it without authentication.
- name: Make Docker image public
run: |
curl \
-X PATCH \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/user/packages/container/${{ env.IMAGE_NAME }}/visibility \
-d '{"visibility":"public"}'
24 changes: 17 additions & 7 deletions .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches:
- "*"
pull_request_target:
pull_request:
branches:
- "*"
jobs:
Expand All @@ -25,6 +25,8 @@ jobs:
run: pnpm run smokeTests
integration-tests:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- uses: actions/checkout@v4

Expand All @@ -43,13 +45,21 @@ jobs:
- name: Build packages
run: pnpm build

- name: Run integration tests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
- name: Check for API key
id: check_api_key
run: |
if [ -z "$OPENAI_API_KEY" ]; then
echo "Skipping integration tests due to missing required API keys"
exit 1
echo "::set-output name=api_key_present::false"
else
pnpm run integrationTests
echo "::set-output name=api_key_present::true"
fi

- name: Run integration tests
if: steps.check_api_key.outputs.api_key_present == 'true'
run: pnpm run integrationTests

- name: Skip integration tests
if: steps.check_api_key.outputs.api_key_present == 'false'
run: |
echo "Skipping integration tests due to missing required API keys"
exit 1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ tsup.config.bundled_*.mjs

coverage
.eslintcache

agent/content
1 change: 1 addition & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ tasks:
- name: "init eliza env"
init: |
nvm install v23.3.0
git fetch --tags
git checkout $(git describe --tags --abbrev=0)
command: pnpm install && pnpm run build
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ COPY --from=builder /app/scripts ./scripts
COPY --from=builder /app/characters ./characters

# Set the command to run the application
CMD ["pnpm", "start", "--non-interactive"]
CMD ["pnpm", "start"]
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@

```bash
git clone https://github.com/ai16z/eliza-starter.git

cd eliza-starter
cp .env.example .env

pnpm i && pnpm build && pnpm start
```

Expand Down
67 changes: 59 additions & 8 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,81 @@

# 开始使用

**前置要求(必须):**
**前置要求(必须):**

- [Python 2.7+](https://www.python.org/downloads/)
- [Node.js 23+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
- Nodejs安装
- [pnpm](https://pnpm.io/installation)
- 使用pnpm

### 编辑.env文件
以下是两种基础的Eliza下载方案, 请根据情况自行选择。

- - 将 .env.example 复制为 .env 并填写适当的值
## (A) 使用启动器(Starter): 推荐

```
git clone https://github.com/ai16z/eliza-starter.git
cd eliza-starter
cp .env.example .env
```

## (B) 手动启动Eliza: 仅在您知道自己在做什么时才推荐

```
git clone https://github.com/ai16z/eliza.git
cd eliza
# 切换最新发布的版本(Checkout the latest release)
# Eliza的迭代速度非常快, 所以我们建议经常性的切换到最新的发布版本以免出现问题(This project iterates fast, so we recommend checking out the latest release)
git checkout $(git describe --tags --abbrev=0)
```

在将代码下载到本地后, 我们要做两件事:

### 1. 编辑.env文件(环境变量)

-`.env.example` 复制为 `.env` 并在其中填写适当的值
- 编辑推特环境并输入你的推特账号和密码

### 编辑角色文件
**最简化配置方案**:
```
OPENAI_API_KEY=sk-xxx # 配置OpenAI 的API, sk-开头, 注意, 目前不支持AzureOpenAI!
- 查看文件 `src/core/defaultCharacter.ts` - 您可以修改它
## 如配置Twitter/X, 则需配置
# Twitter/X Configuration
TWITTER_DRY_RUN=false
TWITTER_USERNAME=abc # Your Twitter/X account username
TWITTER_PASSWORD=abc # Your Twitter/X account password
TWITTER_EMAIL= xxx@gmail.com # Your Twitter/X account email
TWITTER_COOKIES= '' # Your Twitter/X cookies, copy from broswer
TWITTER_2FA_SECRET= # Two-factor authentication
```

### 2. 编辑角色文件

- 标准的角色个性定义在文件 `characters/*.character.json`中, 您可以修改它或者直接使用它。
- 您也可以使用 `node --loader ts-node/esm src/index.ts --characters="path/to/your/character.json"` 加载角色并同时运行多个机器人。
- 需要说明的是, 在`characters/*.character.json`中, `clients字段对应**服务**, 默认可选`"twitter", "discord", "telegram"`等, 如果在`clients`中填入了如"twitter"等内容, 则需要在
上面的`env`配置对应的环境变量。对`discord``telegram`同理。

```
{
"name": "trump",
"clients": ["twitter"],
"modelProvider": "openai",
```

在完成账号和角色文件的配置后,输入以下命令行启动你的bot:
在完成环境变量和角色文件的配置后,输入以下命令行启动你的bot:

```
(A) 使用启动器(Starter)
sh scripts/start.sh
(B) 手动启动Eliza
pnpm i
pnpm build
pnpm start
```


# 自定义Eliza

### 添加常规行为
Expand Down
6 changes: 3 additions & 3 deletions README_ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- 📚 Ingestión e interacción sencilla con documentos
- 💾 Memoria recuperable y almacenamiento de documentos
- 🚀 Altamente extensible - cree sus propias acciones y clientes para expandir capacidades
- ☁️ Soporta múltiples modelos, incluyendo Llama local, OpenAI, Anthropic, Groq y más
- ☁️ Soporta múltiples modelos, incluidos Llama local, OpenAI, Anthropic, Groq y más
- 📦 Funciona perfectamente

## Usos
Expand All @@ -29,8 +29,8 @@

### Edite el archivo .env

- Copie .env.example a .env y complete los valores apropiados
- Edite las variables de ambiente de TWITTER para agregar nombre de usuario y contraseña del bot
- Copie el archivo .env.example a .env y complete los valores apropiados
- Edite las variables de entorno de TWITTER para agregar nombre de usuario y contraseña del bot

### Edite el archivo de personaje

Expand Down
12 changes: 6 additions & 6 deletions README_FR.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
- 🛠 Support des connecteurs Discord/ Twitter / Telegram
- 🔗 Support des différents modèles d'IA (Llama, Grok, OpenAI, Anthropic, etc.)
- 👥 Gestion de plusieurs agents et assistance
- 📚 Import et intéractions avec différents types de documents simplifiés
- 📚 Import et interactions avec différents types de documents simplifiés
- 💾 Accès aux données en mémoire et aux documents stockés
- 🚀 Grande personnalisation possible : création de nouveaux clients et de nouvelles actions
- 📦 Simplicité d'utilisation

Que pouvez-vous faire avec Eliza?

- 🤖 Chatbot
- 🕵 ️Agents autonomes
- 🕵 Agents autonomes
- 📈 Processus automatisés
- 🎮 PNJ intéractifs
- 🎮 PNJ interactifs
- 🧠 Trading automatisé

# Premiers pas
Expand All @@ -32,7 +32,7 @@ Que pouvez-vous faire avec Eliza?
### Editer le fichier .env

- Copier le fichier d'example et le remplir le avec les valeurs adéquates
- Copier le fichier d'exemple .env.example et le remplir avec les valeurs adéquates

```
cp .env.example .env
Expand All @@ -59,10 +59,10 @@ pnpm start
pnpm clean
```

#### Ressources additionelles
#### Ressources additionnelles

Il vous faudra peut-être installer Sharp.
Si il y a une erreur lors du lancement du bot, essayez d'installer Sharp comme ceci :
S'il y a une erreur lors du lancement du bot, essayez d'installer Sharp comme ceci :

```
pnpm install --include=optional sharp
Expand Down
Loading
Loading