• Stefy Lanza (nextime / spora )'s avatar
    video: _as_b64 was out of scope for every LongCat binary input (v0.2.75) · 998a810c
    Stefy Lanza (nextime / spora ) authored
        File "codai/api/video.py", line 4176, in _generate_longcat
          payload["audio"] = _as_b64(_audio)
        NameError: name '_as_b64' is not defined
    
    _as_b64 was defined INSIDE _generate_h3, MiniMax H3's handler, and
    _generate_longcat referenced it across that scope. So every LongCat path that
    carries binary input raised NameError before reaching the worker: the avatar
    audio track (at2v), the reference image (ai2v and i2v), and continuation frames.
    Text-to-video is the only path that never touches it, which is why t2v was the
    only one that ever worked.
    
    It cost a 20-minute wait for the GPU to find out, because the NameError fires
    after the model is loaded and the swap gate has handed over.
    
    Now module level, beside the _decode_b64_or_url it wraps. The test walks the AST
    for a call site in a function that neither defines it nor is nested in one that
    does, so the same mistake in another backend fails here instead of on a rented
    GPU.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_0185zEBiy3KWB37xNGSrxL7w
    998a810c
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...