Repository navigation
Krasis v1.0.18
Krasis v1.0.18
This release fixes structured tool calling across the shipped model families.
DeepSeek-V4-Flash previously received tool definitions correctly but returned
its native DSML invocation as plain assistant text, so clients such as Opencode
could not execute it. Krasis now translates each supported template's native
grammar to OpenAI-compatible tool_calls in both streaming and non-streaming
responses, with finish_reason: "tool_calls".
Tool-use support
| Model family | Native grammar | Status |
|---|---|---|
| DeepSeek-V4-Flash | Typed DSML | Supported |
| Qwen3 base / Qwen3-235B | JSON in <tool_call> |
Supported |
| Qwen3-Coder-Next | Function/parameter XML | Supported |
| Qwen3.5 / Qwen3.6 | Function/parameter XML | Supported |
| Ornith 35B / 397B | Function/parameter XML | Supported |
| Step-3.7-Flash | Function/parameter XML | Supported |
| Nemotron-3 Nano / Super | Function/parameter XML | Supported |
| GLM-4.7 / GLM-5.2 | arg_key / arg_value XML |
Supported; model runtime remains preview |
| Gemma 4 | Native call:name{...} |
Supported |
| MiniMax M2.x | Native minimax:tool_call |
Supported |
| DeepSeek-V2 / V2-Lite / VL2 | No grammar in the shipped fallback template | Not supported |
Additional fixes and safeguards:
- Typed parameters retain strings, numbers, booleans, objects, arrays, and null.
- Multiple tool calls, assistant tool-call history, and tool-role results work.
- Streaming buffers native markup and emits structured OpenAI name/argument chunks.
- DeepSeek's observed abbreviated inner DSML tags are handled within a canonical DSML container.
- Gemma grammar delimiters are selectively preserved without leaking unrelated special tokens.
- Unsupported templates fail visibly; malformed or truncated blocks remain visible text.
- The
qcndevelopment alias now resolves the validated INT4/HQQ4/k4v4 config.
Verification
- Rust server contracts: 17/17.
- DeepSeek math: 20/20.
- Model/config matrix: 17/17.
- Launcher matrix: 24/24.
- Live structured call plus tool-result round trip: DeepSeek-V4-Flash, Qwen3-Coder-Next, and Gemma 4.
- DeepSeek streaming verified with structured name and argument chunks,
finish_reason: "tool_calls", and no DSML leakage. - Approved heatmaps loaded without quick rebuilds in all live tests.
No model math, quantization, quality baseline, or benchmark path changed in this release.