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.
28 lines
784 B
TOML
28 lines
784 B
TOML
[package]
|
|
name = "strata-ctl"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Rust control layer for the Strata inference engine: OpenAI-compatible HTTP API over the engine's line protocol"
|
|
license = "MIT"
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
thiserror = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "process", "io-util", "sync", "time", "macros", "signal", "net"] }
|
|
tracing = "0.1"
|
|
axum = "0.8"
|
|
futures = "0.3.34"
|
|
tokio-stream = "0.1.19"
|
|
tokenizers = "0.23.2"
|
|
minijinja = { version = "3.1.0", features = ["serde"] }
|
|
image = "0.25.10"
|
|
base64 = "0.23.1"
|
|
ureq = "3.5.2"
|
|
|
|
[dev-dependencies]
|
|
http-body-util = "0.1.5"
|
|
tokio = { version = "1", features = ["full"] }
|
|
tower = { version = "0.5", features = ["util"] }
|