Files
Robert KarlandClaude Fable 5.1 1db37aaa75 Add the C++ front end: one binary serves an OpenAI-style chat API
unbiased-strata is the engine plus a front end. Started normally it runs
the front end, which starts a copy of itself as the engine (--engine) and
talks to it over a pipe in the engine's own line protocol, as upstream's
Python server does. The engine source is included unchanged; only its
entry point is renamed at compile time.

Tokenizer, Jinja chat template and HTTP library come from the pinned
llama.cpp submodule. Endpoints: POST /v1/chat/completions (with
streaming and reasoning_content), GET /v1/models, GET /health.

Builds on the RTX 3090 pod. Not yet verified end to end.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-04 14:28:08 -07:00

7 lines
403 B
C++

// frontend/engine_entry.cpp - the unmodified Strata engine program, compiled into this binary under another name.
//
// The engine's own source file is included as it is; only its entry point is renamed, so frontend/main.cpp can
// decide whether this process is the HTTP front end or the engine it starts as a child (`--engine`).
#define main strata_engine_main
#include "../src/program/generate.cpp"