fix: honor empty OmniRoute model overrides
Homelab Main / validate (push) Waiting to run Details
Homelab Main / running-update (push) Blocked by required conditions Details
Homelab Main / debian-ops (push) Blocked by required conditions Details

This commit is contained in:
juvenal.diaz 2026-10-08 15:37:23 -06:00
parent 43e7215d20
commit b78de7f873
1 changed files with 11 additions and 2 deletions

View File

@ -14,8 +14,17 @@ OMNIROUTE_BOOTSTRAP_TMP_DIR=""
OMNIROUTE_MODEL_VALIDATE_ATTEMPTS="${LAB_AI_STACK_MODEL_VALIDATE_ATTEMPTS:-4}"
OMNIROUTE_FAST_MODEL_TARGET="${LAB_AI_STACK_FAST_MODEL_TARGET:-1}"
OMNIROUTE_SMART_MODEL_TARGET="${LAB_AI_STACK_SMART_MODEL_TARGET:-2}"
OMNIROUTE_OPENROUTER_MODELS="${LAB_AI_STACK_OPENROUTER_MODELS:-openrouter/apodex/apodex-1.1-mini:free,openrouter/cohere/north-mini-code:free,openrouter/google/gemma-4-26b-a4b-it:free,openrouter/google/gemma-4-31b-it:free}"
OMNIROUTE_NVIDIA_MODELS="${LAB_AI_STACK_NVIDIA_MODELS:-}"
DEFAULT_OPENROUTER_MODELS="openrouter/apodex/apodex-1.1-mini:free,openrouter/cohere/north-mini-code:free,openrouter/google/gemma-4-26b-a4b-it:free,openrouter/google/gemma-4-31b-it:free"
if [[ ${LAB_AI_STACK_OPENROUTER_MODELS+x} ]]; then
OMNIROUTE_OPENROUTER_MODELS="${LAB_AI_STACK_OPENROUTER_MODELS}"
else
OMNIROUTE_OPENROUTER_MODELS="${DEFAULT_OPENROUTER_MODELS}"
fi
if [[ ${LAB_AI_STACK_NVIDIA_MODELS+x} ]]; then
OMNIROUTE_NVIDIA_MODELS="${LAB_AI_STACK_NVIDIA_MODELS}"
else
OMNIROUTE_NVIDIA_MODELS=""
fi
OMNIROUTE_ENABLE_NVIDIA_DISCOVERY="${LAB_AI_STACK_ENABLE_NVIDIA_DISCOVERY:-false}"
if [[ ! -s "${ENV_FILE}" ]]; then