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

Failed to send Ollama request: Cannot read properties of null (reading 'includes')\n" + #395

Closed
freeload101 opened this issue Jan 3, 2025 · 1 comment

Comments

@freeload101
Copy link

so close !!! 😿

andy logged in!
andy spawned.
received message from system : Respond with hello world and your name
Saved memory to: ./bots/andy/memory.json
selected examples:
Example: You are self-prompting with the goal: 'Build a house'. Respond:
Example: trade something with zorro_34
Awaiting local response... (model: Beelzebub4883/Mineslayer_v2_basic)
Failed to send Ollama request.
{}
Unhandled Rejection at: {
  promise: Object [Promise] {},
  reason: {},
  stack: "TypeError: Cannot read properties of null (reading 'includes')\n" +
    '  at Prompter.promptConvo (file:///C:/backup/Mindcraft/mindcraft/src/agent/prompter.js:241:28)\n' +
    '  at async Agent.handleMessage (file:///C:/backup/Mindcraft/mindcraft/src/agent/agent.js:263:23)\n' +
    '  at async Agent._setupEventHandlers (file:///C:/backup/Mindcraft/mindcraft/src/agent/agent.js:171:13)'
}
SES_UNHANDLED_REJECTION: {}
Agent process exited with code 1 and signal null
Agent process ./andy.json exited too quickly and will not be restarted.

all open on normal 11434 port:

{ "name": "andy", "model": "Beelzebub4883/Mineslayer_v2_basic" }

also tried

{"embedding":"openai","max_tokens":4000,"model":"Beelzebub4883/Mineslayer_v2_basic","name":"LLama"}
 netstat -nape | grep -ia ollama
tcp        0      0 127.0.0.1:11434         0.0.0.0:*               LISTEN      999        25669      248/ollama 

Ollama works:

curl http://localhost:11434/api/chat \
  -H "Content-Type: application/json" \
  -d '{
    "model": "Beelzebub4883/Mineslayer_v2_basic",
    "messages": [
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ]
  }'

{"model":"Beelzebub4883/Mineslayer_v2_basic","created_at":"2025-01-01T12:29:16.759056868Z","message":

@freeload101
Copy link
Author

I was running ollama on localhost in WSL ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant