Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions os/mini/1bit-menu
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,11 @@ header() {
else
printf 'runs from RAM, nothing installed, disks untouched\n'
fi
printf ' Address http://%s:%s\033[K\n' "$IP" "$PORT"
printf ' API key grep LEMONADE_API_KEY /data/lemonade/lemond.conf\033[K\n'
# the two things a person wants first: where to click, and where to point a client. The web app is
# Lemonade's own (served at /, chat right away); the API is OpenAI-compatible under /api/v1.
if wget -q -O /dev/null -T 2 "http://127.0.0.1:$PORT/" 2>/dev/null; then web=up; else web=starting; fi
printf ' Web app %shttp://%s:%s/%s open it in a browser and chat (%s)\033[K\n' "$BOLD" "$IP" "$PORT" "$RESET" "$web"
printf ' API http://%s:%s/api/v1 OpenAI-compatible; key: grep LEMONADE_API_KEY /data/lemonade/lemond.conf\033[K\n' "$IP" "$PORT"
printf '%s %s%s\033[K\n' "$GREY" "$RULE" "$RESET"
}

Expand Down
3 changes: 2 additions & 1 deletion os/mini/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ if [ -n "$TJ" ]; then
say "temps: Tctl $(( $(cat "$TJ/temp1_input" 2>/dev/null || echo 0) / 1000 ))C EC $(cat /sys/class/ec_su_axb35/temp1/temp 2>/dev/null || echo n/a)C"
fi
echo "IP: $(ip -4 -o addr show scope global | awk '{print $2, $4}' | tr '\n' ' ')"
echo; echo "Lemonade's web app and API: http://$lhost:$lport (from another machine: ssh -L $lport:localhost:$lport root@<IP>)"
ipaddr=$(ip -4 -o addr show scope global 2>/dev/null | awk '{print $4}' | cut -d/ -f1 | head -1)
echo; echo "Web app (chat in a browser): http://${ipaddr:-<this address>}:$lport/ API (OpenAI-compatible): http://${ipaddr:-<this address>}:$lport/api/v1"
echo "Prove the engine answers from this boot: 1bit-selftest (console or SSH; logs to /data/selftest.log)"
echo "The engine alone, for debugging: 1bit serve -m /data/models/<file.gguf> (auto: HRX0, on 127.0.0.1:8000)"; echo

Expand Down
Loading