OverviewFilesCommitsIssuesDocsReleasesPeers

ollama_semantic_function_calling / ollamatools-new / run_keet_bot.sh

29 lines · bash ref:
#!/bin/bash
# Script to run the Keet bot with the updated identity

# Set the storage directory
STORAGE_DIR="test-keet-storage"

# Check if a room key was provided
if [ -z "$1" ]; then
  echo "Usage: $0 <room-key> [model]"
  echo "Example: $0 pear://keet/abcdef123456 llama3.1:latest"
  exit 1
fi

ROOM_KEY="$1"

# Set the model (default to llama3.1:latest if not provided)
MODEL=${2:-"llama3.1:latest"}

# Update identity files to ensure a real identity
echo "Updating identity files to ensure real identity..."
node tests/update_real_keet_identity.js --storage="$STORAGE_DIR" --name="KeetBot"

# Note: The keet_cmd.js script has been modified to ensure anonymous=false in the identity
echo "Using modified keet_cmd.js script to ensure real identity..."

# Run the Keet bot
echo "Starting Keet bot with room key: $ROOM_KEY and model: $MODEL"
node tests/keet_cmd.js --room-key="$ROOM_KEY" --storage="$STORAGE_DIR" --model="$MODEL" --verbose