| … | … | @@ -0,0 +1,21 @@ |
| 1 | #!/bin/bash |
| 2 | # Script to run the Keet bot on the second device |
| 3 | |
| 4 | # Set the storage directory |
| 5 | STORAGE_DIR="second-device-keet/storage" |
| 6 | |
| 7 | # Check if a room key was provided |
| 8 | if [ -z "$1" ]; then |
| 9 | echo "Usage: $0 <room-key> [model]" |
| 10 | echo "Example: $0 pear://keet/abcdef123456 llama3.1:latest" |
| 11 | exit 1 |
| 12 | fi |
| 13 | |
| 14 | ROOM_KEY="$1" |
| 15 | |
| 16 | # Set the model (default to llama3.1:latest if not provided) |
| 17 | MODEL=${2:-"llama3.1:latest"} |
| 18 | |
| 19 | # Run the Keet bot on the second device |
| 20 | echo "Starting Keet bot on second device with room key: $ROOM_KEY and model: $MODEL" |
| 21 | node second-device-keet/keet_cmd.js --room-key="$ROOM_KEY" --storage="$STORAGE_DIR" --model="$MODEL" --name="KeetBot Mobile" --verbose |