Skip to content

OpenAI endpoint stage 10 — preservation audit and PR prep

Choose a tag to compare

Stage 10 of the OpenAI-compatible endpoint branch.

Implemented:

  • Documented the drift serve OpenAI-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 run and drift node paths.
  • 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.py
  • python3 -m drift.cli help
  • python3 -m drift.cli run --help
  • python3 -m drift.cli node --help
  • python3 -m drift.cli serve --help

Verification blocked by local environment:

  • python3 -m drift.parity_test --mode inprocess
  • python3 -m drift.parity_test --mode socket
  • python3 -m drift.itest --nodes 2
  • python3 -m drift.itest --nodes 2 --chain
  • python3 -m drift.itest --nodes 2 --thin
  • python3 -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.