9
Some checks failed
Builder / Build addons (localai-p2p-master, amd64) (push) Failing after 9s
Builder / Build addons (localai-p2p-worker, amd64) (push) Failing after 13s
Validate / validate (push) Failing after 2s
Builder / Create release (push) Has been skipped

This commit is contained in:
2025-05-30 15:13:38 +02:00
parent 10a8425bb7
commit 805290e812
3 changed files with 21 additions and 13 deletions

View File

@@ -3,15 +3,19 @@
# Forcer l'utilisation de la configuration Home Assistant
echo "Using Home Assistant configuration"
# Source bashio si disponible
# Vérifier que bashio est disponible
if [ -f /usr/bin/bashio ]; then
source /usr/bin/bashio
echo "DEBUG: bashio found, reading configuration"
GPU_LAYERS="$(bashio config gpu_layers 2>/dev/null || echo '99')"
TOKEN="$(bashio config master_token 2>/dev/null || echo '')"
MODELS_PATH="$(bashio config models_path 2>/dev/null || echo '/share/localai/models')"
else
echo "DEBUG: bashio not found, using defaults"
GPU_LAYERS="99"
TOKEN=""
MODELS_PATH="/share/localai/models"
fi
GPU_LAYERS="$(bashio::config 'gpu_layers' 2>/dev/null || echo '99')"
TOKEN="$(bashio::config 'master_token' 2>/dev/null || echo '')"
MODELS_PATH="$(bashio::config 'models_path' 2>/dev/null || echo '/share/localai/models')"
echo "DEBUG: GPU_LAYERS=$GPU_LAYERS"
echo "DEBUG: TOKEN from config: '$TOKEN'"
echo "DEBUG: MODELS_PATH=$MODELS_PATH"