Skip to content

Commit 06ba91b

Browse files
committed
Squashed commit of the following:
commit ea8cfb3 Merge: 2217ac0 242052b Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 20:58:03 2024 -0800 Merge pull request elizaOS#1262 from derRizzMeister/main feat: add README_DE.md in docs directory commit 242052b Merge: 2d8d74a 2217ac0 Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 20:57:44 2024 -0800 Merge branch 'develop' into main commit 2d8d74a Author: Brandon Garvajal <brandon.garvajal@gmail.com> Date: Fri Dec 20 11:50:42 2024 +0700 feat: add README_DE.md in docs directory commit 2217ac0 Merge: e6de3a5 85c3af4 Author: Odilitime <janesmith@airmail.cc> Date: Thu Dec 19 20:23:23 2024 -0800 Merge pull request elizaOS#1246 from tomguluson92/tomguluson92-patch-2 feat: upgrade Tavily API with comprehensive input and constrain the token consumption commit e6de3a5 Merge: 8c0709c d331665 Author: Shakker Nerd <165377636+shakkernerd@users.noreply.github.com> Date: Fri Dec 20 02:24:09 2024 +0000 Merge pull request elizaOS#1258 from ai16z/tcm-claude-vertext-miss fix: unsupported model provider: claude_vertex commit d331665 Author: Susanhu <susanhu@macbook-air.mynetworksettings.com> Date: Thu Dec 19 20:12:24 2024 -0500 mapping claude vertex commit 8c0709c Merge: c4cfb8d 93ebd19 Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 15:34:11 2024 -0800 Merge pull request elizaOS#1252 from ai16z/lalalune-patch-1 commit c4cfb8d Merge: 2d04d80 e97cac5 Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 15:33:13 2024 -0800 Merge pull request elizaOS#1254 from julienbrs/1253--add-twitter-automation-label-notice commit e97cac5 Author: julienbrs <julien.bourseau@gmail.com> Date: Fri Dec 20 00:01:00 2024 +0100 doc: add Twitter automation label notice (elizaOS#1253) commit 93ebd19 Author: Shaw <shawmakesmagic@gmail.com> Date: Thu Dec 19 16:28:03 2024 -0600 Update trump.character.json Remove a controversial line so we don't have to waste time on pointless old world political divisions commit 2d04d80 Merge: 800cd0d a6f4bf6 Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 14:07:08 2024 -0800 Merge pull request elizaOS#1250 from odilitime/fix-ll fix: Fix local_llama key warning commit a6f4bf6 Merge: 5c9b4ff 800cd0d Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 14:06:13 2024 -0800 Merge branch 'develop' into fix-ll commit 800cd0d Merge: da405cd 31b336f Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 14:05:56 2024 -0800 Merge pull request elizaOS#1245 from renlulu/feat/express-payload-config feat: make express payload limit configurable commit 31b336f Merge: 9b25e9a da405cd Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 14:05:24 2024 -0800 Merge branch 'develop' into feat/express-payload-config commit da405cd Merge: 34a04ba cb0fad1 Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 14:04:22 2024 -0800 Merge pull request elizaOS#1202 from netdragonx/main fix: optional chaining on search to avoid startup errors when search is not enabled commit cb0fad1 Merge: 1aee80d 34a04ba Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 14:03:34 2024 -0800 Merge branch 'develop' into main commit 9b25e9a Merge: 4dd6d89 34a04ba Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 14:03:01 2024 -0800 Merge branch 'develop' into feat/express-payload-config commit 34a04ba Merge: 5a023c7 08a5aad Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 14:02:52 2024 -0800 Merge pull request elizaOS#1242 from ai16z/tcm-twitter-character-template-issue fix: twitterShouldRespondTemplate Fails When Defined as a String in JSON Character Config commit 5a023c7 Merge: 2f157b6 f4e781c Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 14:02:33 2024 -0800 Merge pull request elizaOS#1243 from luisalrp/fix-cicd-package-visibility Fix visibility issue github image cicd commit f4e781c Merge: a4f20db 2f157b6 Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 14:01:19 2024 -0800 Merge branch 'develop' into fix-cicd-package-visibility commit 4dd6d89 Merge: 4004a02 2f157b6 Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 14:01:11 2024 -0800 Merge branch 'develop' into feat/express-payload-config commit 08a5aad Merge: 80a1b83 2f157b6 Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 13:58:35 2024 -0800 Merge branch 'develop' into tcm-twitter-character-template-issue commit 2f157b6 Merge: bb82b05 c98840c Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 13:56:53 2024 -0800 Merge pull request elizaOS#1237 from yjshi2015/main Update trump.character.json - Enhance terminology in the project for clarity and inclusivity commit c98840c Merge: 3a9586e bb82b05 Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 13:56:21 2024 -0800 Merge branch 'develop' into main commit bb82b05 Merge: 6cb9134 d552cf8 Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 13:55:23 2024 -0800 Merge pull request elizaOS#1236 from azurwastaken/fix/typo Update README for french, spanish and italian language commit d552cf8 Merge: b7eca66 6cb9134 Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 13:54:58 2024 -0800 Merge branch 'develop' into fix/typo commit 6cb9134 Merge: 1edb372 90a6b91 Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 13:54:31 2024 -0800 Merge pull request elizaOS#1239 from jonathangus/develop fix: Sync UI Client with server port env commit 90a6b91 Merge: ea61561 1edb372 Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 13:53:32 2024 -0800 Merge branch 'develop' into develop commit 1edb372 Merge: 86005ad 370ea70 Author: Monil Patel <monilpat@gmail.com> Date: Thu Dec 19 13:52:55 2024 -0800 Merge pull request elizaOS#1244 from renlulu/feat/env-twitter-retry feat: make twitter login retry times as env commit 5c9b4ff Author: odilitime <janesmith@airmail.cc> Date: Thu Dec 19 21:33:59 2024 +0000 handle llama_local getTokenForProvider properly commit 85c3af4 Author: tomguluson92 <314913739@qq.com> Date: Fri Dec 20 03:21:17 2024 +0800 Update .env.example commit db43e13 Author: tomguluson92 <314913739@qq.com> Date: Fri Dec 20 03:19:54 2024 +0800 Update index.ts commit 832a274 Author: tomguluson92 <314913739@qq.com> Date: Fri Dec 20 03:18:29 2024 +0800 Update generation.ts commit 4004a02 Merge: c905d7c 86005ad Author: xiaohuo <xiaohuo@altresear.ch> Date: Fri Dec 20 02:14:16 2024 +0800 Merge branch 'develop' into feat/express-payload-config commit 370ea70 Merge: 8046d29 86005ad Author: xiaohuo <xiaohuo@altresear.ch> Date: Fri Dec 20 02:13:37 2024 +0800 Merge branch 'develop' into feat/env-twitter-retry commit c905d7c Author: xiaohuo <xiaohuo200@gmail.com> Date: Fri Dec 20 02:11:38 2024 +0800 feat: make express payload limit configurable commit 8046d29 Author: xiaohuo <xiaohuo200@gmail.com> Date: Fri Dec 20 01:52:57 2024 +0800 chore: env update commit fe3afef Author: xiaohuo <xiaohuo200@gmail.com> Date: Fri Dec 20 01:51:01 2024 +0800 feat: make twitter retry limit a env commit 80a1b83 Author: Ting Chien Meng <tcm390@nyu.edu> Date: Thu Dec 19 11:30:17 2024 -0500 treat twitterShouldRespondTemplate as string commit a4f20db Author: Luis Alberto Rodrigo <a_luisal@hotmail.com> Date: Thu Dec 19 17:23:18 2024 +0100 Fix visibility issue github image cicd commit ea61561 Author: Jonathan Gustafsson <jonathangus@proton.me> Date: Thu Dec 19 14:25:50 2024 +0100 Fix: Sync UI Client with server port env commit 3a9586e Author: Gavin <495054021@qq.com> Date: Thu Dec 19 20:16:15 2024 +0800 Enhance terminology in the project for clarity and inclusivity commit b7eca66 Merge: 37fb32f 86005ad Author: azurwastaken <caseaux.maxime@gmail.com> Date: Thu Dec 19 12:26:49 2024 +0100 Merge branch 'develop' into fix/typo commit 37fb32f Author: azurwastaken <caseaux.maxime@gmail.com> Date: Thu Dec 19 12:20:46 2024 +0100 Update README_IT.md commit 84bdd46 Author: azurwastaken <caseaux.maxime@gmail.com> Date: Thu Dec 19 12:14:53 2024 +0100 Update README_ES.md commit 43699ba Author: azurwastaken <caseaux.maxime@gmail.com> Date: Thu Dec 19 12:10:57 2024 +0100 fix type in french Readme commit 86005ad Merge: d990859 f500c8d Author: Shakker Nerd <165377636+shakkernerd@users.noreply.github.com> Date: Thu Dec 19 07:46:36 2024 +0000 Merge pull request elizaOS#1229 from simpletrontdip/enhance-tele-client feat: add parse mode=Markdown, enhance telegram bot output commit d990859 Merge: 76960dd 31b2b25 Author: Shakker Nerd <165377636+shakkernerd@users.noreply.github.com> Date: Thu Dec 19 07:43:27 2024 +0000 Merge pull request elizaOS#1214 from vpavlin/fix/akash fix: fail when cannot get token, add Akash to generateText switch commit f500c8d Merge: 92ddabb 76960dd Author: Lê Thông <thongitbk@gmail.com> Date: Thu Dec 19 14:40:54 2024 +0700 Merge branch 'develop' into enhance-tele-client commit 31b2b25 Merge: 97b5d15 76960dd Author: Shakker Nerd <165377636+shakkernerd@users.noreply.github.com> Date: Thu Dec 19 07:38:33 2024 +0000 Merge branch 'develop' into fix/akash commit 97b5d15 Author: Shakker Nerd <165377636+shakkernerd@users.noreply.github.com> Date: Thu Dec 19 07:35:54 2024 +0000 feat: include akash to handleProvider commit 76960dd Merge: 50ef711 d8f9001 Author: Shakker Nerd <165377636+shakkernerd@users.noreply.github.com> Date: Thu Dec 19 06:56:56 2024 +0000 Merge pull request elizaOS#1218 from danbednarski/twitter-credentials chore: clean up scripts commit d8f9001 Merge: f07efc9 50ef711 Author: Shakker Nerd <165377636+shakkernerd@users.noreply.github.com> Date: Thu Dec 19 06:56:18 2024 +0000 Merge branch 'develop' into twitter-credentials commit 50ef711 Merge: 21c63c4 bb5caa5 Author: Shakker Nerd <165377636+shakkernerd@users.noreply.github.com> Date: Thu Dec 19 06:44:22 2024 +0000 Merge pull request elizaOS#1226 from tomguluson92/patch-2 fix: CircuitBreaker.ts commit bb5caa5 Merge: b8f9d81 21c63c4 Author: Shakker Nerd <165377636+shakkernerd@users.noreply.github.com> Date: Thu Dec 19 06:37:04 2024 +0000 Merge branch 'develop' into patch-2 commit 92ddabb Author: simpletrontdip <thongitbk@gmail.com> Date: Thu Dec 19 13:35:17 2024 +0700 feat: add parse mode, support telebot output in markdown commit b8f9d81 Author: tomguluson92 <314913739@qq.com> Date: Thu Dec 19 12:48:04 2024 +0800 feat: CircuitBreaker.ts commit 21c63c4 Merge: 392efc6 97d474f Author: Monil Patel <monilpat@gmail.com> Date: Wed Dec 18 18:09:08 2024 -0800 Merge pull request elizaOS#1219 from odilitime/postgres-fix fix: postgres needs the user to exist before you can add a participant commit 392efc6 Merge: d3d6198 cd5fc2f Author: Monil Patel <monilpat@gmail.com> Date: Wed Dec 18 18:06:18 2024 -0800 Merge pull request elizaOS#1220 from ai16z/tcm-telegram-image fix: Allow the bot to post messages with images generated by the imageGenerationPlugin on Telegram. commit cd5fc2f Author: Ting Chien Meng <tcm390@nyu.edu> Date: Wed Dec 18 19:25:30 2024 -0500 handle http image commit e47b1d9 Author: Ting Chien Meng <tcm390@nyu.edu> Date: Wed Dec 18 19:14:07 2024 -0500 clean code commit 97d474f Merge: 3c230b4 81d0273 Author: Odilitime <janesmith@airmail.cc> Date: Wed Dec 18 16:06:50 2024 -0800 Merge branch 'main' into postgres-fix commit 7ac6616 Author: Ting Chien Meng <tcm390@nyu.edu> Date: Wed Dec 18 19:05:57 2024 -0500 correct content type commit 98fbe39 Author: Ting Chien Meng <tcm390@nyu.edu> Date: Wed Dec 18 19:03:16 2024 -0500 check content type commit 6b25b8c Author: Ting Chien Meng <tcm390@nyu.edu> Date: Wed Dec 18 19:02:02 2024 -0500 support image message commit d3d6198 Merge: 962d1b9 7aa0902 Author: cygaar <97691933+cygaar@users.noreply.github.com> Date: Wed Dec 18 19:00:39 2024 -0500 Merge pull request elizaOS#1217 from cygaar/improve_twitter fix: improve twitter post generation prompt commit 3c230b4 Author: odilitime <janesmith@airmail.cc> Date: Wed Dec 18 23:46:30 2024 +0000 postgres needs the user to exist before you can add a participant commit 7aa0902 Author: cygaar <tmpftl1@gmail.com> Date: Wed Dec 18 18:34:53 2024 -0500 Update commit f07efc9 Author: Dan Bednarski <the.jesus.aviles@gmail.com> Date: Wed Dec 18 17:08:29 2024 -0600 Delete scripts/tweetextractor.mjs commit d8f80bf Author: Dan Bednarski <the.jesus.aviles@gmail.com> Date: Wed Dec 18 17:08:05 2024 -0600 Rename gettweets-copy.mjs to gettweets.mjs commit 646acea Author: cygaar <tmpftl1@gmail.com> Date: Wed Dec 18 18:00:49 2024 -0500 Improve generation prompt commit 21ed0f2 Author: Václav Pavlín <vaclav.pavlin@gmail.com> Date: Wed Dec 18 22:14:47 2024 +0100 fix: fail when cannot get token, add Akash to generateText switch commit 90c84be Author: Dan Bednarski <the.jesus.aviles@gmail.com> Date: Wed Dec 18 10:51:28 2024 -0600 Delete scripts/gettweets.mjs commit 1aee80d Author: netdragonx <netdragon0x@gmail.com> Date: Wed Dec 18 01:27:23 2024 -0800 Fix: optional chaining on search to prevent error when search is uncommented but not enabled in env file.
1 parent be42842 commit 06ba91b

File tree

27 files changed

+724
-550
lines changed

27 files changed

+724
-550
lines changed

.env.example

+7
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ LARGE_HYPERBOLIC_MODEL= # Default: meta-llama/Meta-Llama-3.1-405-Instruc
3434
# Speech Synthesis
3535
ELEVENLABS_XI_API_KEY= # API key from elevenlabs
3636

37+
# Direct Client Setting
38+
EXPRESS_MAX_PAYLOAD= # Default: 100kb
39+
3740
# ElevenLabs Settings
3841
ELEVENLABS_MODEL_ID=eleven_multilingual_v2
3942
ELEVENLABS_VOICE_ID=21m00Tcm4TlvDq8ikWAM
@@ -55,6 +58,7 @@ TWITTER_COOKIES= # Account cookies
5558
TWITTER_POLL_INTERVAL=120 # How often (in seconds) the bot should check for interactions
5659
TWITTER_SEARCH_ENABLE=FALSE # Enable timeline search, WARNING this greatly increases your chance of getting banned
5760
TWITTER_TARGET_USERS= # Comma separated list of Twitter user names to interact with
61+
TWITTER_RETRY_LIMIT= # Maximum retry attempts for Twitter login
5862

5963
X_SERVER_URL=
6064
XAI_API_KEY=
@@ -257,6 +261,9 @@ LARGE_AKASH_CHAT_API_MODEL= # Default: Meta-Llama-3-1-405B-Instruct-FP8
257261
FAL_API_KEY=
258262
FAL_AI_LORA_PATH=
259263

264+
# Web search API Configuration
265+
TAVILY_API_KEY=
266+
260267
# WhatsApp Cloud API Configuration
261268
WHATSAPP_ACCESS_TOKEN= # Permanent access token from Facebook Developer Console
262269
WHATSAPP_PHONE_NUMBER_ID= # Phone number ID from WhatsApp Business API

.github/workflows/image.yaml

+56-47
Original file line numberDiff line numberDiff line change
@@ -9,53 +9,62 @@ on:
99

1010
# 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.
1111
env:
12-
REGISTRY: ghcr.io
13-
IMAGE_NAME: ${{ github.repository }}
12+
REGISTRY: ghcr.io
13+
IMAGE_NAME: ${{ github.repository }}
1414

1515
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
1616
jobs:
17-
build-and-push-image:
18-
runs-on: ubuntu-latest
19-
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
20-
permissions:
21-
contents: read
22-
packages: write
23-
attestations: write
24-
id-token: write
25-
#
26-
steps:
27-
- name: Checkout repository
28-
uses: actions/checkout@v4
29-
# 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.
30-
- name: Log in to the Container registry
31-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
32-
with:
33-
registry: ${{ env.REGISTRY }}
34-
username: ${{ github.actor }}
35-
password: ${{ secrets.GITHUB_TOKEN }}
36-
# 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.
37-
- name: Extract metadata (tags, labels) for Docker
38-
id: meta
39-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
40-
with:
41-
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
42-
# 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.
43-
# 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.
44-
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
45-
- name: Build and push Docker image
46-
id: push
47-
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
48-
with:
49-
context: .
50-
push: true
51-
tags: ${{ steps.meta.outputs.tags }}
52-
labels: ${{ steps.meta.outputs.labels }}
53-
54-
# 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)."
55-
- name: Generate artifact attestation
56-
uses: actions/attest-build-provenance@v1
57-
with:
58-
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
59-
subject-digest: ${{ steps.push.outputs.digest }}
60-
push-to-registry: true
61-
17+
build-and-push-image:
18+
runs-on: ubuntu-latest
19+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
20+
permissions:
21+
contents: read
22+
packages: write
23+
attestations: write
24+
id-token: write
25+
#
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
# 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.
30+
- name: Log in to the Container registry
31+
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
32+
with:
33+
registry: ${{ env.REGISTRY }}
34+
username: ${{ github.actor }}
35+
password: ${{ secrets.GITHUB_TOKEN }}
36+
# 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.
37+
- name: Extract metadata (tags, labels) for Docker
38+
id: meta
39+
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
40+
with:
41+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
42+
# 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.
43+
# 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.
44+
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
45+
- name: Build and push Docker image
46+
id: push
47+
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
48+
with:
49+
context: .
50+
push: true
51+
tags: ${{ steps.meta.outputs.tags }}
52+
labels: ${{ steps.meta.outputs.labels }}
53+
54+
# 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)."
55+
- name: Generate artifact attestation
56+
uses: actions/attest-build-provenance@v1
57+
with:
58+
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
59+
subject-digest: ${{ steps.push.outputs.digest }}
60+
push-to-registry: true
61+
62+
# This step makes the Docker image public, so users can pull it without authentication.
63+
- name: Make Docker image public
64+
run: |
65+
curl \
66+
-X PATCH \
67+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
68+
-H "Accept: application/vnd.github.v3+json" \
69+
https://api.github.com/user/packages/container/${{ env.IMAGE_NAME }}/visibility \
70+
-d '{"visibility":"public"}'

README_ES.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- 📚 Ingestión e interacción sencilla con documentos
1010
- 💾 Memoria recuperable y almacenamiento de documentos
1111
- 🚀 Altamente extensible - cree sus propias acciones y clientes para expandir capacidades
12-
- ☁️ Soporta múltiples modelos, incluyendo Llama local, OpenAI, Anthropic, Groq y más
12+
- ☁️ Soporta múltiples modelos, incluidos Llama local, OpenAI, Anthropic, Groq y más
1313
- 📦 Funciona perfectamente
1414

1515
## Usos
@@ -29,8 +29,8 @@
2929

3030
### Edite el archivo .env
3131

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

3535
### Edite el archivo de personaje
3636

README_FR.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
- 🛠 Support des connecteurs Discord/ Twitter / Telegram
88
- 🔗 Support des différents modèles d'IA (Llama, Grok, OpenAI, Anthropic, etc.)
99
- 👥 Gestion de plusieurs agents et assistance
10-
- 📚 Import et intéractions avec différents types de documents simplifiés
10+
- 📚 Import et interactions avec différents types de documents simplifiés
1111
- 💾 Accès aux données en mémoire et aux documents stockés
1212
- 🚀 Grande personnalisation possible : création de nouveaux clients et de nouvelles actions
1313
- 📦 Simplicité d'utilisation
1414

1515
Que pouvez-vous faire avec Eliza?
1616

1717
- 🤖 Chatbot
18-
- 🕵 ️Agents autonomes
18+
- 🕵 Agents autonomes
1919
- 📈 Processus automatisés
20-
- 🎮 PNJ intéractifs
20+
- 🎮 PNJ interactifs
2121
- 🧠 Trading automatisé
2222

2323
# Premiers pas
@@ -32,7 +32,7 @@ Que pouvez-vous faire avec Eliza?
3232
3333
### Editer le fichier .env
3434

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

3737
```
3838
cp .env.example .env
@@ -59,10 +59,10 @@ pnpm start
5959
pnpm clean
6060
```
6161

62-
#### Ressources additionelles
62+
#### Ressources additionnelles
6363

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

6767
```
6868
pnpm install --include=optional sharp

README_IT.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
- 🛠️ Connettori completi per Discord, Twitter e Telegram
1010
- 🔗 Supporto per tutti i modelli (Llama, Grok, OpenAI, Anthropic, ecc.)
1111
- 👥 Supporto multi-agente e per stanze
12-
- 📚 Acquisisci ed interagisci facilmente con i tuoi documenti
12+
- 📚 Acquisisci e interagisci facilmente con i tuoi documenti
1313
- 💾 Memoria recuperabile e archivio documenti
1414
- 🚀 Altamente estensibile - crea le tue azioni e clients personalizzati
1515
- ☁️ Supporto di numerosi modelli (Llama locale, OpenAI, Anthropic, Groq, ecc.)
1616
- 📦 Funziona e basta!
1717

18-
## 🎯 Casi d'Uso
18+
## 🎯 Casi d'uso
1919

2020
- 🤖 Chatbot
2121
- 🕵️ Agenti Autonomi
22-
- 📈 Gestione Processi Aziendali
22+
- 📈 Gestione dei processi aziendali
2323
- 🎮 NPC per Videogiochi
2424
- 🧠 Trading
2525

@@ -51,7 +51,7 @@ sh scripts/start.sh
5151

5252
### Modifica il file del personaggio
5353

54-
1. Apri `packages/agent/src/character.ts` per modificare il personaggio predefinito. Decommentare e modificare.
54+
1. Apri `packages/agent/src/character.ts` per modificare il personaggio predefinito. Decommenta e modifica.
5555

5656
2. Per caricare personaggi personalizzati:
5757
- Usa `pnpm start --characters="percorso/del/tuo/personaggio.json"`
@@ -76,10 +76,10 @@ Potrebbe essere necessario installare Sharp. Se vedi un errore all'avvio, prova
7676
pnpm install --include=optional sharp
7777
```
7878

79-
### Community e contatti
79+
### Comunità e contatti
8080

81-
- [GitHub Issues](https://github.com/ai16z/eliza/issues). Ideale per: bug riscontrati utilizzando Eliza e proposte di funzionalità.
82-
- [Discord](https://discord.gg/ai16z). Ideale per: condividere le tue applicazioni e interagire con la community.
81+
- [GitHub Issues](https://github.com/ai16z/eliza/issues). Ideale per segnalare bug riscontrati durante l’utilizzo di Eliza e proporre nuove funzionalità.
82+
- [Discord](https://discord.gg/ai16z). Ideale per condividere le tue applicazioni e interagire con la comunità.
8383

8484
## Contributori
8585

agent/src/index.ts

+14-3
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,11 @@ export async function loadCharacters(
212212
export function getTokenForProvider(
213213
provider: ModelProviderName,
214214
character: Character
215-
) {
215+
): string {
216216
switch (provider) {
217+
// no key needed for llama_local
218+
case ModelProviderName.LLAMALOCAL:
219+
return "";
217220
case ModelProviderName.OPENAI:
218221
return (
219222
character.settings?.secrets?.OPENAI_API_KEY ||
@@ -236,6 +239,7 @@ export function getTokenForProvider(
236239
character.settings?.secrets?.OPENAI_API_KEY ||
237240
settings.OPENAI_API_KEY
238241
);
242+
case ModelProviderName.CLAUDE_VERTEX:
239243
case ModelProviderName.ANTHROPIC:
240244
return (
241245
character.settings?.secrets?.ANTHROPIC_API_KEY ||
@@ -307,6 +311,10 @@ export function getTokenForProvider(
307311
character.settings?.secrets?.AKASH_CHAT_API_KEY ||
308312
settings.AKASH_CHAT_API_KEY
309313
);
314+
default:
315+
const errorMessage = `Failed to get token - unsupported model provider: ${provider}`;
316+
elizaLogger.error(errorMessage);
317+
throw new Error(errorMessage);
310318
}
311319
}
312320

@@ -585,7 +593,10 @@ function initializeDbCache(character: Character, db: IDatabaseCacheAdapter) {
585593
return cache;
586594
}
587595

588-
async function startAgent(character: Character, directClient): AgentRuntime {
596+
async function startAgent(
597+
character: Character,
598+
directClient: DirectClient
599+
): Promise<AgentRuntime> {
589600
let db: IDatabaseAdapter & IDatabaseCacheAdapter;
590601
try {
591602
character.id ??= stringToUuid(character.name);
@@ -659,7 +670,7 @@ const startAgents = async () => {
659670
}
660671

661672
// upload some agent functionality into directClient
662-
directClient.startAgent = async (character) => {
673+
directClient.startAgent = async (character: Character) => {
663674
// wrap it so we don't have to inject directClient later
664675
return startAgent(character, directClient);
665676
};

characters/trump.character.json

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
},
1111
"plugins": [],
1212
"bio": [
13-
"SAVED America from the China Virus (while they let cities burn)",
1413
"secured the Southern Border COMPLETELY (until they DESTROYED it)",
1514
"protected WOMEN'S SPORTS (while Democrats let MEN compete)",
1615
"ended INFLATION and made America AFFORDABLE (until Kamala ruined it)",

client/vite.config.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { defineConfig } from "vite";
33
import topLevelAwait from "vite-plugin-top-level-await";
44
import react from "@vitejs/plugin-react";
55
import wasm from "vite-plugin-wasm";
6+
import { config } from "dotenv";
7+
8+
config({ path: path.resolve(__dirname, "../.env") });
69

710
// https://vite.dev/config/
811
export default defineConfig({
@@ -26,7 +29,7 @@ export default defineConfig({
2629
server: {
2730
proxy: {
2831
"/api": {
29-
target: "http://localhost:3000",
32+
target: `http://localhost:${process.env.SERVER_PORT || 3000}`,
3033
changeOrigin: true,
3134
rewrite: (path) => path.replace(/^\/api/, ""),
3235
},

docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## 🌍 README Translations
88

9-
[中文说明](./README_CN.md) | [Français](./README_FR.md) | [ไทย](./README_TH.md)
9+
[中文说明](./README_CN.md) | [Deutsch](./README_DE.md) | [Français](./README_FR.md) | [ไทย](./README_TH.md)
1010

1111
# dev branch
1212

0 commit comments

Comments
 (0)