Files
leleka/control-plane/Cargo.toml
T
Pavlo RatushnyiandClaude Sonnet 5.5 c2290e1145 feat: serve gpt-oss through the control plane's Responses API (family adapter) (STRA-218)
Setting engine.gptoss_gguf (or STRATA_GPTOSS_GGUF) selects the gpt-oss family and takes the tokenizer from
that GGUF. Prompts: a Responses request (instructions, input items with reasoning, function calls and
outputs, tools, tool_choice, parallel_tool_calls, text.format, reasoning effort) is rendered as the Harmony
conversation by leleka-harmony; the same replay validation as the Qwen path, one call per assistant message
with its output, no custom tools. Output: a stateful HarmonyDecoder turns the generated tokens into the
reasoning / answer / <tool_call> markup that the existing code parses, so tool-name and argument
validation, history and the streaming events are reused; gpt-oss always reasons, the end-of-generation
markers <|return|> and <|call|> are the terminal tokens, and an open tool call is closed when the
generation ends.

Safety: the renderer can write its special markers as private-use sentinel characters (and replaces those
characters in caller text); the codec turns exactly those into special tokens. Marker-looking text from a
client, in messages, tool descriptions or tool output, stays ordinary text.

Side effect, deliberate: serde_json preserve_order is now on workspace-wide (the renderer needs the client's
property order), so tool-call argument objects keep the model's key order instead of alphabetical; one test
expectation changed accordingly. 52 responses tests and the new family tests pass; the 13 other
control-plane test failures on Windows predate this change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 22:15:52 +02:00

38 lines
928 B
TOML

[package]
name = "strata-control"
version = "0.1.0"
edition = "2024"
rust-version = "1.99"
default-run = "strata-next"
[[bin]]
name = "strata-next"
path = "src/main.rs"
[dependencies]
axum = "0.8"
futures-core = "0.3"
hex = "0.4"
leleka-gguf = { path = "../crates/gguf" }
leleka-harmony = { path = "../crates/harmony" }
leleka-tokenizer = { path = "../crates/tokenizer" }
http-body = "1"
jsonschema = { version = "0.58.4", default-features = false }
libc = "0.2"
reqwest = { version = "0.13.5", default-features = false, features = ["rustls"] }
regex = "1.13.1"
regex-syntax = "0.8.11"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sha2 = "0.11"
subtle = "2.6.1"
tokio = { version = "1", features = ["fs", "io-util", "macros", "net", "process", "rt-multi-thread", "signal", "sync", "time"] }
webpki-root-certs = "1.0"
[build-dependencies]
cc = "1"
sha2 = "0.11"
[dev-dependencies]
http-body-util = "0.1"