• Stefy Lanza (nextime / spora )'s avatar
    api: the orchestrator image now serves its own admin GUI (v0.2.83) · e23fbb72
    Stefy Lanza (nextime / spora ) authored
    Bug 3 from the Digesta report: no published image was both a GPU-less
    RunPod orchestrator and an admin GUI.
    
    The cause was a split nobody had noticed: admin_router is the admin API
    (POST /login, /admin/api/*), while the GUI PAGES — GET /admin, /login,
    /admin/models … — live in frontproxy/ui_pages.py and were registered only
    on the front app. An install running `uvicorn codai.api.app:app` as a pure
    orchestrator therefore shipped the entire admin API with no way to reach
    it: GET /admin answered 404 and GET /login 405, because only POST /login
    existed. Reproduced both exactly before changing anything.
    
    codai/api/app.py now registers those pages itself, against the same config
    dir the admin API writes, so one image is orchestrator + GUI. Guarded: a
    missing templates or config dir logs and leaves the API untouched, the
    same contract the front has.
    
    Verified: /admin 404->302 /login, GET /login 405->200, /admin/models and
    /admin/runpod redirect to login, and under X-Forwarded-Prefix=/coderai the
    redirect goes to /coderai/login. /healthz and /v1/models unaffected.
    
    Bug 4 (the light app 500ing under X-Forwarded-Prefix) did NOT reproduce:
    _ForwardedPrefixMiddleware is installed in this app and /coderai/healthz,
    /coderai/v1/models and the GUI all answer correctly with the header set,
    stripped or un-stripped. The reported 500 was most likely /admin itself
    (404 before this fix) surfacing through their proxy.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    e23fbb72
Name
Last commit
Last update
codai Loading commit data...
docs Loading commit data...
packaging Loading commit data...
samples Loading commit data...
tests Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
AI.PROMPT Loading commit data...
CODERAI_API_DOCUMENTATION.md Loading commit data...
CoderAI.gif Loading commit data...
DISTRIBUTION.md Loading commit data...
LICENSE.md Loading commit data...
MULTIMODAL_CAPABILITIES.md Loading commit data...
MULTIMODAL_UI_EXAMPLES.md Loading commit data...
README.md Loading commit data...
REQUEST-geoclip-embeddings.md Loading commit data...
REQUEST-vpr-embeddings.md Loading commit data...
amdgpu-coredump-05000.bin Loading commit data...
build-oci.sh Loading commit data...
build.ps1 Loading commit data...
build.sh Loading commit data...
coderai Loading commit data...
coderai-broker-implementation-reference.md Loading commit data...
coderai-integration.md Loading commit data...
commands Loading commit data...
osxbuild.sh Loading commit data...
package-oci.sh Loading commit data...
package-tarball.sh Loading commit data...
requirements-crisperwhisper.txt Loading commit data...
requirements-h3.txt Loading commit data...
requirements-longcat-train.txt Loading commit data...
requirements-longcat.txt Loading commit data...
requirements-melotts.txt Loading commit data...
requirements-nemo.txt Loading commit data...
requirements-nvidia.txt Loading commit data...
requirements-ocr-paddle.txt Loading commit data...
requirements-ocr.txt Loading commit data...
requirements-pyannote.txt Loading commit data...
requirements-surya.txt Loading commit data...
requirements-vllm.txt Loading commit data...
requirements-vulkan.txt Loading commit data...
requirements.txt Loading commit data...
run-oci.sh Loading commit data...
smoke-test-oci.sh Loading commit data...
todo.md Loading commit data...