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.
14 lines
469 B
Rust
14 lines
469 B
Rust
//! 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;
|