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>
7 lines
403 B
C++
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"
|