debug
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: "LocalAI P2P Worker"
|
||||
version: "1.0.3.2" # Incrémentez aussi la version
|
||||
version: "1.0.3.3" # Incrémentez aussi la version
|
||||
slug: "localai-p2p-worker" # ⬅️ IMPORTANT : doit correspondre au nom du dossier
|
||||
description: "LocalAI P2P federation worker node"
|
||||
arch:
|
||||
|
||||
@@ -5,10 +5,17 @@ GPU_LAYERS="$(bashio::config 'gpu_layers')"
|
||||
TOKEN="$(bashio::config 'master_token' || echo '')"
|
||||
MODELS_PATH="$(bashio::config 'models_path')"
|
||||
|
||||
if [ ! -z "$TOKEN" ]; then
|
||||
echo "DEBUG: TOKEN from config: '$TOKEN'"
|
||||
|
||||
if [ -n "$TOKEN" ] && [ "$TOKEN" != "" ]; then
|
||||
echo "DEBUG: Setting LOCALAI_P2P_TOKEN to: $TOKEN"
|
||||
export LOCALAI_P2P_TOKEN="$TOKEN"
|
||||
else
|
||||
echo "DEBUG: No token provided in configuration"
|
||||
fi
|
||||
|
||||
echo "DEBUG: LOCALAI_P2P_TOKEN is set to: '$LOCALAI_P2P_TOKEN'"
|
||||
|
||||
# Créer le répertoire des modèles s'il n'existe pas
|
||||
mkdir -p "$MODELS_PATH"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user