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

Fresh install from main will not start with a characterfile #265

Closed
twilwa opened this issue Nov 11, 2024 · 0 comments · Fixed by #274
Closed

Fresh install from main will not start with a characterfile #265

twilwa opened this issue Nov 11, 2024 · 0 comments · Fixed by #274
Labels
bug Something isn't working characters embedding

Comments

@twilwa
Copy link
Contributor

twilwa commented Nov 11, 2024

Describe the bug
When pulling a fresh repo
good news:
pull from main, pnpm install, pnpm start -- works!

bad news:
pull from main, pnpm install, pnpm start --characters=..../trump.character.json
fails:

file:///home/anon/repos/eliza/Eliza/packages/core/src/generation.ts:297
    console.log("model.model.embedding", model.model.embedding);
                                               ^

TypeError: Cannot read properties of undefined (reading 'model')
    at splitChunks (file:///home/anon/repos/eliza/Eliza/packages/core/src/generation.ts:297:48)
    at AgentRuntime.processCharacterKnowledge (file:///home/anon/repos/eliza/Eliza/packages/core/src/runtime.ts:240:41)

Node.js v23.1.0
/home/anon/repos/eliza/Eliza/packages/agent:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @ai16z/[email protected] start: `node --loader ts-node/esm src/index.ts "--isRoot" "--characters=/home/anon/repos/Eliza/characters/trump.character.json"`
Exit status 1
 ELIFECYCLE  Command failed with exit code 1
 ```
<!-- A clear and concise description of what the bug is. -->
this is prior to sending an initial message to this character -- the embeddings for the default eliza load successfully.

**To Reproduce**
pnpm install, pnpm start --characters=[any characterfile]
<!-- Steps to reproduce the behavior. -->

**Expected behavior**

<!-- A clear and concise description of what you expected to happen. -->

DirectClient constructor
["◎ sqlite-vec extensions loaded successfully."]

Creating runtime for character Eliza
Agent ID b850bc30-45f8-0041-a00a-83df46d8555d
["✓ Registering action: CONTINUE"]
["✓ Registering action: FOLLOW_ROOM"]

["✓ Registering action: UNFOLLOW_ROOM"]

["✓ Registering action: IGNORE"]

["✓ Registering action: NONE"]

["✓ Registering action: MUTE_ROOM"]

["✓ Registering action: UNMUTE_ROOM"]

Registering service: browser
Registering service: image_description
Registering service: text_generation
Registering service: pdf
Registering service: speech_generation
Registering service: transcription
Registering service: video
Chat started. Type 'exit' to quit.
You: Server running at http://localhost:3000/
test
DirectClient message
["✓ User Eliza created successfully."]

["✓ User User created successfully."]

["◎ Room 217df98d-3f87-0a35-9a24-e0cd4fb3a9f1 created successfully."]

["◎ User 12dea96f-ec20-0935-a6ab-75692c994959 linked to room 217df98d-3f87-0a35-9a24-e0cd4fb3a9f1 successfully."]

["◎ User b850bc30-45f8-0041-a00a-83df46d8555d linked to room 217df98d-3f87-0a35-9a24-e0cd4fb3a9f1 successfully."]

embeddingModel text-embedding-3-small
embedding [
-0.006373816,


**Screenshots**
![image](https://github.com/user-attachments/assets/39e4681c-41ae-447a-b11c-1aeafcd9d763)

<!-- If applicable, add screenshots to help explain your problem. -->

**Additional context**
attempted to fix with:
"name": "troll",
"clients": [ "discord", "direct" ],
"modelProvider": "anthropic",
"settings": {
  "secrets": {},
  "voice": {
    "model": "en_GB-male-deep"
  }
https://discord.com/channels/1253563208833433701/1298900529178742796/1305655368084492379

unsuccessful

<!-- Add any other context about the problem here. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working characters embedding
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants