Fix: Maya-Eule lädt jetzt .env automatisch

- Added .env loader to Maya-Eule script
- Script findet .env im parent directory
- Uses set -a/set +a for clean export
- Now works when called directly: ./crumbforest_roles/mayaeule_zero.sh
- Tested successfully with 'Was bedeutet Freundschaft?'
- Beautiful poetic response: 275 tokens 
This commit is contained in:
Branko May Trinkwald
2025-12-21 14:46:51 +01:00
parent 562d1f78ea
commit c125a7538f

View File

@@ -2,6 +2,17 @@
# 🦉 Maya-Eule - Die weise Eule mit Gedächtnis (Qdrant Memory)
# "Was kostet die Frage eines Kindes?" - Im Wald unbezahlbar.
# Load .env if exists
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ENV_FILE="${SCRIPT_DIR}/../.env"
if [[ -f "${ENV_FILE}" ]]; then
# Export environment variables from .env
set -a
source "${ENV_FILE}"
set +a
fi
QUESTION="$*"
API_KEY="${OPENROUTER_API_KEY}"
MODEL="${OPENROUTER_MODEL:-openai/gpt-3.5-turbo}"