@echo off
REM ============================================================================
REM   CUBIE TEP — FULL LLM BENCHMARK + THINKING SHOWCASE (v5_demo)
REM   Double-click launcher.
REM ============================================================================

setlocal
title Cubie TEP LLM Full Demo
color 0B

set "SCRIPT_DIR=%~dp0"
set "DEMO_PS1=%SCRIPT_DIR%v5_Cubie_TEP_LLM_FullDemo.ps1"

if not exist "%DEMO_PS1%" (
    echo.
    echo Could not find v5_Cubie_TEP_LLM_FullDemo.ps1 next to this .bat
    echo Expected at: %DEMO_PS1%
    echo.
    pause
    exit /b 1
)

REM Prefer pwsh (PowerShell 7) when available; fall back to Windows PowerShell.
where /q pwsh
if %ERRORLEVEL%==0 (
    pwsh -NoLogo -ExecutionPolicy Bypass -File "%DEMO_PS1%" %*
) else (
    powershell -NoLogo -ExecutionPolicy Bypass -File "%DEMO_PS1%" %*
)

endlocal
