Explorer
/tmp/p2zg_verify_host.py
← Zurück ↓ Download
import subprocess

# Host-Datei ist die korrekte Version (nur reasoning.effort=none).
# Container hat noch die alte Version (mit Alibaba-Provider, der 400 wirft).
# -> Host-Version ins Container-Build-Verzeichnis ist bereits synchron;
#    Container muss mit --build neu erstellt werden.

with open('/opt/struktur/graphiti/service/llm_call_worker.py') as f:
    host_src = f.read()

assert "extra_body={'reasoning': {'effort': 'none'}}" in host_src, "Host version wrong!"
assert 'Alibaba' not in host_src, "Alibaba still in host version!"
print("HOST VERSION CORRECT")

# Verify syntax
compile(host_src, 'llm_call_worker.py', 'exec')
print("SYNTAX OK")