OpenAI endpoint stage 10 — preservation audit and PR prep
Stage 10 of the OpenAI-compatible endpoint branch.
Implemented:
- Documented the
drift serveOpenAI-compatible HTTP/SSE adapter in README and the operations manual. - Linked the explicit compatibility matrix (
docs/openai-compatibility.md) from README. - Preserved lightweight CLI help in dependency-thin environments by lazy-importing heavy runtime modules in
drift runanddrift nodepaths. - Confirmed the OpenAI adapter remains an edge HTTP layer and does not replace the existing DRIFT TCP+msgpack data plane.
Verification passed:
- System Python:
python3 -m pytest tests/test_openai_api.py tests/test_openai_compat_payloads.py tests/test_openai_sdk_smoke.py tests/test_sampling_controls.py -q(32 passed, 2 skipped because system Python lacks openai and torch) - SDK venv with actual OpenAI Python SDK:
PYTHONPATH=$PWD /tmp/drift-openai-sdk-venv/bin/python -m pytest tests/test_openai_api.py tests/test_openai_compat_payloads.py tests/test_openai_sdk_smoke.py tests/test_sampling_controls.py -q(33 passed, 1 skipped because venv lacks torch) python3 -m compileall drift tests scripts/openai_compat_smoke.pypython3 -m drift.cli helppython3 -m drift.cli run --helppython3 -m drift.cli node --helppython3 -m drift.cli serve --help
Verification blocked by local environment:
python3 -m drift.parity_test --mode inprocesspython3 -m drift.parity_test --mode socketpython3 -m drift.itest --nodes 2python3 -m drift.itest --nodes 2 --chainpython3 -m drift.itest --nodes 2 --thinpython3 -m drift.itest --nodes 2 --int8
All blocked DRIFT runtime gates failed at import with ModuleNotFoundError: No module named 'torch' in the current Python 3.14 environment, before executing model logic.