strata-ctl: Rust control layer for the Strata engine (OpenAI-compatible API)
From-scratch rewrite of the Python serve (Python kept as behavioral spec). - engine: line-protocol supervisor (GEN/T/DONE/STOP/QUIT), silence watchdog, abort, is_idle probe. - config: tolerant shared-JSON loader; foreign keys ignored so one file drives strata-ctl and uostream; CLI --config/--host/--port/--serve. - inkling: o200k tokenizer wrapper + incremental UTF-8-safe detok; chat template via minijinja; channel-token dialect (reasoning streamed live); image bridge (in-process Vision, image=<path>); formatter assembling the API seam. - api: /v1/chat/completions (stream SSE + non-stream), /v1/models, /health; reasoning_content; structured tool_calls (llama.cpp --jinja style, client-side execution); stop sequences with hold-back; abort on client disconnect. 69 tests green + 2 real-file ignored; clippy clean. Text, images and tools validated live against the real Inkling engine.
This commit is contained in:
commit
597ac432e1
30 files changed
+7541
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
//! strata-ctl: a Rust control layer for the Strata inference engine.
|
||||
//!
|
||||
//! - [`engine`]: spawn `strata --serve` and speak its line protocol.
|
||||
//! - [`api`]: the OpenAI-compatible HTTP surface (types, formatter seam,
|
||||
//! completion service, axum routes).
|
||||
//!
|
||||
//! Next: the Inkling formatter (chat template + tokenizer), then wiring a
|
||||
//! binary that reads the existing `strata-inkling.json` and serves.
|
||||
|
||||
pub mod api;
|
||||
pub mod config;
|
||||
pub mod engine;
|
||||
pub mod inkling;
|
||||
Reference in new issue
Block a user