跳至主要内容

GenAI Studio

Reach the GenAI Studio backend running on a board (run.sh, port 5000 by default) through Insight, so the browser never calls the board directly. Configure the board address once, then call the Studio's own API under /api/genai/. /api/genai-setup installs, prepares and starts GenAI Studio on the selected board.

📄️Install, prepare and start GenAI Studio on the selected board

Starts one detached job on the board running every step that is not done yet, in order: `NEAT_APPS_SKIP_DEPENDENCIES=1 NEAT_APPS_OVERWRITE=1 sima-cli neat install apps` from `/media/nvme` (the running Insight is never reinstalled; an Insight built from develop or any branch other than main installs `apps@develop`, and a GenAI Studio from another channel or built for an older Neat Library line is replaced, its files kept in `/media/nvme/.prebuilt-apps-backup`), `setup.sh` without a terminal (default voice languages), then `run.sh`, which keeps running. NVMe must be mounted at `/media/nvme`; caches and temporary files use `/media/nvme/.cache/neat-genai-studio`. The job outlives the request, the SSH session and Insight; its logs are in `~/.neat-insight/genai-setup/` on the board. Refuses while a step runs or GenAI Studio is still starting (`setup_running`), when everything is done (`setup_done`), or when a step's prerequisite is missing (`setup_blocked`, with the step and the fix). `{'redo': 'prepare'}` runs `setup.sh` again and restarts GenAI Studio, for example after fixing what it warned about; GenAI Studio is stopped first. A GenAI Studio still running while an earlier step failed or was stopped is also stopped first, and started again after that step.