#!/usr/bin/with-contenv bashio CONFIG_PATH=/data/options.json GPU_LAYERS="$(bashio::config 'gpu_layers')" TOKEN="$(bashio::config 'master_token' || echo '')" if [ ! -z "$TOKEN" ]; then export LOCALAI_P2P_TOKEN="$TOKEN" fi exec /build/local-ai run --models-path=/share/localai/models --gpu-layers="$GPU_LAYERS"