• Stefy Lanza (nextime / spora )'s avatar
    reloading the configuration must actually reload it (v0.4.24) · 4de70ec7
    Stefy Lanza (nextime / spora ) authored
    /admin/api/system/reload built a bare `Request({})` in order to reach
    `app.state.config_mgr`, which raises on the first attribute: the endpoint
    answered 500 to every call it ever received and had never reloaded anything.
    An operator editing a config file by hand therefore had no way to apply the
    edit except restarting the server.
    
    That matters most for a pod pool. A pool reads its ceilings -- max_pods,
    gpu_types, the cost caps -- out of models_data on every acquisition, so an
    edit the process has not re-read is an edit that does not apply, and the
    operator's only lever was a restart that drops whatever is in flight.
    
    The handler now takes the injected Request and falls back to the manager that
    set_config_manager installed, because the front proxy and the engine do not
    both populate app state. It reloads BOTH files and reports how many model
    entries it re-read, so a caller can see that the reload reached models.json
    and not only config.json.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01KnfkxBpcZ1v6ypRFFyhrVM
    4de70ec7
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...