Skip to content

Commit 735025c

Browse files
merge
2 parents d4394c2 + 4d1e66c commit 735025c

File tree

111 files changed

+6175
-4400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+6175
-4400
lines changed

.env.example

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ X_SERVER_URL=
2929
XAI_API_KEY=
3030
XAI_MODEL=
3131

32+
#USE IMAGE GEN
33+
IMAGE_GEN= #TRUE
34+
3235
#Leave blank to use local embeddings
3336
USE_OPENAI_EMBEDDING= #TRUE
3437

@@ -52,6 +55,9 @@ LARGE_OLLAMA_MODEL= #default hermes3:70b
5255
# For asking Claude stuff
5356
ANTHROPIC_API_KEY=
5457

58+
# Heurist API
59+
HEURIST_API_KEY=
60+
5561
WALLET_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
5662
WALLET_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
5763

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ node_modules
22
/out
33

44
.env
5+
.env.production
56
concatenated-output.ts
67
embedding-cache.json
78

@@ -38,4 +39,3 @@ characters/
3839
packages/core/src/providers/cache
3940
packages/core/src/providers/cache/*
4041
cache/*
41-
packages/core/cache/*

Dockerfile

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM node:23.1.0
2+
# Install pnpm globally
3+
RUN npm install -g pnpm@9.4.0
4+
5+
# Set the working directory
6+
WORKDIR /app
7+
8+
# Add configuration files and install dependencies
9+
ADD pnpm-workspace.yaml /app/pnpm-workspace.yaml
10+
ADD package.json /app/package.json
11+
ADD .npmrc /app/.npmrc
12+
ADD tsconfig.json /app/tsconfig.json
13+
ADD pnpm-lock.yaml /app/pnpm-lock.yaml
14+
RUN pnpm i
15+
16+
# Add the documentation
17+
ADD docs /app/docs
18+
RUN pnpm i
19+
20+
# Add the rest of the application code
21+
ADD packages /app/packages
22+
RUN pnpm i
23+
24+
# Add the environment variables
25+
ADD scripts /app/scripts
26+
ADD characters /app/characters
27+
ADD .env /app/.env
28+
29+
# Command to run the container
30+
CMD ["tail", "-f", "/dev/null"]

README.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
### [For Japanese Version: 日本語の説明](./README_JA.md)
77
### [For Korean Version: 한국어 설명](./README_KOR.md)
88
### [For French Version: Instructions en français](./README_FR.md)
9+
### [For Portuguese Version: Instruções em português](./README_PTBR.md)
910

1011
## Features
1112

@@ -27,7 +28,7 @@
2728
# Getting Started
2829

2930
**Prerequisites (MUST):**
30-
31+
3132
- [Python 2.7+](https://www.python.org/downloads/)
3233
- [Node.js 23.1+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
3334
- [pnpm](https://pnpm.io/installation)
@@ -159,7 +160,7 @@ For help with setting up your Discord Bot, check out here: https://discordjs.gui
159160

160161
## Testing
161162

162-
To run the test suite:
163+
To run the test suite, you must got into each package:
163164

164165
```bash
165166
pnpm test # Run tests once
@@ -181,3 +182,15 @@ Tests are written using Jest and can be found in `src/**/*.test.ts` files. The t
181182
- Run tests in sequence (--runInBand)
182183

183184
To create new tests, add a `.test.ts` file adjacent to the code you're testing.
185+
186+
## Docker
187+
188+
For development purposes, you can run the docker container with the following command:
189+
190+
```
191+
pnpm docker
192+
```
193+
194+
This will drop you into a shell inside the docker container where you can continue to configure the instance
195+
196+
and then you can start it with `pnpm start`

README_KOR.md

+61-52
Original file line numberDiff line numberDiff line change
@@ -4,81 +4,85 @@
44

55
## 기능
66

7-
- 🛠 지지 discord 트위터/telegram 연결
8-
- 👥 지지여 모드 agent
9-
- 📚 간단 한 문서를 가져오기와 문서를 번갈아
10-
- 💾 검색 할 수 있는 메모리와 문서 저장
11-
- 🚀 확장 가능 성이 높은, 사용자 정의 클라이언트와 행위를 확장 기능
12-
- ️여 모형 지지 llama · openai grok anthropic 등
13-
- 📦 간단 하기도 좋습니다.
7+
- 🛠 SNS 지원: 디스코드, 트위터, 텔레그램 모두 지원됩니다.
8+
- 👥 다중 지원: 다중 에이전트 및 채팅방이 지원됩니다.
9+
- 📚 높은 유연성: 개발자가 쉽게 데이터를 추가하고, 이를 활용해 다양한 기능을 만들 수 있습니다.
10+
- 💾 검색 지원: 당신의 데이터와 작업을 쉽게 찾아볼 수 있도록, 검색 기능을 지원합니다.
11+
- 🚀 높은 확장성: 자신의 동작과 클라이언트를 만들어 기능을 확장할 수 있습니다.
12+
-️ 다양한 AI 모델 지원: local Llama, OpenAI, Anthropic, Groq 등 다양한 AI 모델을 지원합니다
13+
- 📦 즐겁게 개발해 봐요!
1414

15-
eliza로 뭘 할있나요?
15+
## eliza로 어떤걸 만들있을까요?
1616

17-
- 🤖 챗 봇
18-
- 🕵 ️ 자주 agents
19-
- 📈 업무 처리 과정을 자동화
20-
- 🎮 게임 npc
17+
- 🤖 챗봇 개발
18+
- 🕵 ️AI가 자율적으로 결과를 만들어줘요!
19+
- 📈 업무처리 자동화
20+
- 🎮 비디오 게임 NPC
2121

2222
# 사용시작
2323

24-
**전제 요구(필수):**
24+
**필수 요구사항:**
2525

26-
- [Node.js 22 +](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
27-
- Nodejs 설치
26+
- [Python 2.7+](https://www.python.org/downloads/)
27+
- [Node.js 23.1+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
2828
- [pnpm](https://pnpm.io/installation)
29-
- pnpm을사용한다
3029

31-
## 편집.env 파일
30+
## .env 파일 편집
3231

33-
- .env.example을.env로 복사하고 적절한 값을 입력한다
34-
- 트위터 환경을 편집하고, 트위터 계정과 비밀번호를 입력한다
32+
- .env.example을 복사해서 필요한 값들을 채워넣어 .env파일을 만드세요.
33+
- 트위터 환경변수 값을 채워, 봇의 트위터 사용자 이름과 비밀번호를 설정하세요.
3534

36-
## 캐릭터 파일 편집
35+
## character file 편집
3736

38-
- 파일 `src/core/defaultcharacter.ts ` - 그것을 수정 할 수 있다
39-
- 사용하셔도됩니다 `node --loader ts-node/esm src/index.ts --characters="path/to/your/character.json"` 여러 로봇을 동시에 실행하여 캐릭터를 불러옵니다.
37+
- 캐릭터 파일 경로: `src/core/defaultCharacter.ts ` - 캐릭터 파일을 필요에 맞게 수정하세요.
38+
- 동시 실행 지원: `pnpm start --characters="path/to/your/character.json"` - 다음의 명령어를 사용하면, 여러 캐릭터 파일을 한번에 불러와, 다양한 봇을 동시에 실행 시킬 수 있습니다.
4039

41-
아이디와 캐릭터 파일 설정이 완료되었다면, 다음 명령줄을 입력하여 로봇을 실행시키십시오:
40+
모두 설정하셨으면, 아래의 커맨드를 입력하여 로봇을 실행시켜주세요:
4241

4342
```
4443
pnpm i
4544
pnpm start
4645
```
4746

48-
# 사용자 정의 Eliza
47+
# Eliza 커스텀하기
4948

50-
### 일반 행동을 추가한다
49+
### 커스텀 기능 추가하기
5150

52-
커널 디렉터리에서 git 충돌을 방지하기 위해 custom_actions 디렉터리에 사용자 정의 동작을 추가하고 elizaconfig.yaml 파일에서 동작을 설정할 것을 제안한다.elizaconfig.example.yaml 파일의 예제는 참조할 수 있다.
51+
메인 디렉토리의 git 충돌을 방지하기 위해 커스텀 동작은 `custom_actions` 디렉토리에 추가하신 후, 추가하신 내용을 `elizaConfig.yaml` 파일에 작성하세요. `elizaConfig.example.yaml` 파일에 예시가 있습니다.
5352

54-
다른 대형 모델들을 배치한다
53+
### AI 모델 실행 방법
5554

56-
### 프로필Llama
55+
### Run with Llama
5756

58-
`XAI_MODEL`환경 변수를`meta-llama/meta-llam-3.1-70b-instruct-turbo`또는`meta-llama/meta-llam-3.1-405b-instruct`로 설정하여 실행할 수 있다라마 70b 405b 모델
57+
`XAI_MODEL`환경 변수를`meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo` 또는 `meta-llama/Meta-Llama-3.1-405B-Instruct`로 설정하여 Llama 70B 혹은 405B 모델을 실행시킬 수 있습니다.
5958

60-
## openai 설정
59+
### Run with Grok
6160

62-
`XAI_MODEL`환경 변수를`gpt-4o-mini`또는`gpt-4o`로 설정하여 OpenAI 모델을 실행할 수 있다
61+
`XAI_MODEL` 환경변수를 `grok-beta`로 설정하여 Grok 모델을 실행시킬 수 있습니다.
62+
63+
### Run with OpenAI
64+
65+
`XAI_MODEL` 환경변수를 `gpt-4o-mini` 혹은 `gpt-4o` 로 설정하여, OpenAI model을 실행시킬 수 있습니다.
6366

6467
## 기타 요구 사항
6568

66-
Sharp를 설치해야 할 수도 있습니다.시작시 오류가 발견되면 다음 명령으로 설치하십시오:
69+
시작시 오류가 발견되면, 아래의 명령어로 Sharp를 설치해보세요:
6770

6871
```
69-
pnpm install-include=optional sharp
72+
pnpm install --include=optional sharp
7073
```
7174

72-
# 환경 설정
75+
# 환경 셋업
7376

74-
다양한 플랫폼에 연결하기 위해서는.env 파일에서 환경 변수를 추가해야 합니다:
77+
다양한 플랫폼에 연결하기 위해 .env 파일에 다음의 환경 변수들을 채워 넣어야 합니다:
7578

7679
```
7780
# Required environment variables
7881
DISCORD_APPLICATION_ID=
7982
DISCORD_API_TOKEN= # Bot token
8083
OPENAI_API_KEY=sk-* # OpenAI API key, starting with sk-
8184
ELEVENLABS_XI_API_KEY= # API key from elevenlabs
85+
GOOGLE_GENERATIVE_AI_API_KEY= # Gemini API key
8286
8387
# ELEVENLABS SETTINGS
8488
ELEVENLABS_MODEL_ID=eleven_multilingual_v2
@@ -121,51 +125,56 @@ TELEGRAM_BOT_TOKEN=
121125
TOGETHER_API_KEY=
122126
```
123127

124-
# 로컬 설정
128+
# 로컬 인터페이스 설정
125129

126-
### cuda 설정
130+
### CUDA 셋업
127131

128-
고성능 엔비디아 그래픽을 가지고 있다면 다음 명령줄에서 cuda를 사용하여 로컬 가속을 할 수 있다
132+
고성능 NVIDIA GPU를 가지고 있는 분들은, CUDA 를 설치하시면 당신의 로컬 인터페이스를 놀랍도록 가속 시킬 수 있습니다.
129133

130134
```
131135
pnpm install
132136
npx --no node-llama-cpp source download --gpu cuda
133137
```
134138

135-
cuDNN과 cuBLAS를 포함한 완전한 cuda 키트를 설치했는지 확인하세요
139+
설치 후에는 당신의 CUDA Toolkit에 cuDNN and cuBLAS 이 포함되었는지 다시 한번 확인하세요.
136140

137141
### 로컬 실행
138142

139-
위의 [Llama로 실행](#run-with-llama) 옵션 중 하나로 XAI_MODEL을 추가한다
140-
X_SERVER_URL과 xai_api_key를 공백으로 두면 huggingface에서 모델을 다운로드하고 현지에서 쿼리한다
143+
다음 중 한가지 옵션을 선택하여 XAI_MODEL 을 추가하세요. [Run with
144+
Llama](#run-with-llama) - X_SERVER_URL 와 XAI_API_KEY 는 비워둬도 됩니다.
145+
이 파일을 통해 huggingface 에서 모델이 다운로드 되며, 로컬로 쿼리 됩니다.
141146

142147
# 클라이언트
143148

144-
discord bot을 설정하는 방법에 대해 discord의 공식 문서를 볼 수 있습니까
149+
## Discord Bot
150+
151+
디스코드 봇을 세팅하는 방법을 알고싶으면 아래의 링크를 통해 확인하세요:
152+
https://discordjs.guide/preparations/setting-up-a-bot-application.html
145153

146-
# 개발
154+
# 개발하기
147155

148-
## 테스트
156+
## 테스트 방법
149157

150-
여러 테스트 방법을 위한 명령줄:
158+
일반 테스트에 적합한 커맨드:
151159

152160
```bash
153161
pnpm test # Run tests once
154162
pnpm test:watch # Run tests in watch mode
155163
```
156164

157-
데이터베이스에 특화된 테스트:
165+
데이터베이스에 특화된 테스트 커맨드:
158166

159167
```bash
160168
pnpm test:sqlite # Run tests with SQLite
161169
pnpm test:sqljs # Run tests with SQL.js
162170
```
163171

164-
테스트는 src/\*_/_.test.ts 파일에 있는 Jest로 작성된다.테스트 환경 설정은 다음과 같습니다:
172+
테스트 결과는 Jest를 통해 작성되며, `src/**/*.test.ts` 파일에서 확인할 수 있습니다.
173+
테스트 환경 구성단계:
165174

166-
- .env.test에서 환경 변수를 불러온다
167-
- 장기 실행 테스트를 실행하기 위해 2분 제한 시간을 사용합니다
168-
- esm 모듈을 지원한다
169-
- 테스트 실행 순서 (--runInBand)
175+
- `.env.test` 에서 환경변수가 불러와집니다.
176+
- 테스트 타임아웃 시간은 2분으로 설정되어있습니다.
177+
- ESM 모듈이 지원됩니다.
178+
- 순차적으로 테스트가 실행됩니다. (--runInBand)
170179

171-
새 테스트를 만들려면, 테스트할 코드 옆에.test.ts 파일을 추가하세요.
180+
새 테스트를 만들려면, 테스트 중인 코드 옆에 `.test.ts` 파일을 추가하세요.

0 commit comments

Comments
 (0)