This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Deadcode 1e968f6e1d radiance 1.7.0
- every model serves without a GPU: libavx covers every op, so `--kernels libavx` alone serves
  every shipped container
- Qwen3-ASR (zivius): speech to text on /v1/audio/transcriptions and live over /v1/realtime
- /v1/messages works with Claude Code as it ships (gearwave00001)
- a long agent conversation keeps its cached history when the client rewrites its last turn
  (manueloverride)
- a stream's first event goes out with the first token, so llama-benchy measures prefill right
- opt-in --prefill-interleave (Smellyyyy, baKon) and --prefill-span (keptn42)
- four-rank TP releases the link early; four-rank selftests and docs/TP4.md (goodman-b)
- NVFP4 and FP8 compressed-tensors imports (devmilan); tools/rad-export for finetunes and LoRA
  adapters (baKon)
- many fixes, among them lost tokens on stop strings under concurrency, keep-alive, MiniCPM5 tool
  arguments and the CPU's vision and audio encoders
- plugin ABI 17 and changed op schemas: out-of-tree plugins must be rebuilt
2026-10-16 18:25:18 +02:00

26 lines
2.1 KiB
Bash
Executable File

#!/bin/sh
# Streamed tool-call replies, as agent clients use them. Streamed content cannot be retracted, so a
# tool call repaired only at the end would leave the client showing both the raw XML and the call.
# Asserts on the raw SSE bytes, not the assembled message.
# Attaches to a running server on P= (default 8100).
P=${P:-8100}
WORK=$(mktemp -d "${TMPDIR:-/tmp}/mcstream.XXXXXX"); trap 'rm -rf "$WORK"' EXIT INT TERM
T='[{"type":"function","function":{"name":"bash","description":"run a shell command","parameters":{"type":"object","properties":{"cmd":{"type":"string"}},"required":["cmd"]}}},{"type":"function","function":{"name":"write","description":"write a file","parameters":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string"}},"required":["path","content"]}}}]'
one() { # $1 label $2 prompt
curl -s -N -m 240 http://127.0.0.1:$P/v1/chat/completions -H 'Content-Type: application/json' \
-d "{\"model\":\"m\",\"messages\":[{\"role\":\"user\",\"content\":$2}],\"tools\":$T,\"stream\":true,\"max_tokens\":2500,\"temperature\":0}" > "$WORK/sse.txt"
# every content fragment the client would render, concatenated
jq -rj '.choices[0].delta.content // ""' < /dev/null 2>/dev/null
CONTENT=$(grep '^data: {' "$WORK/sse.txt" | sed 's/^data: //' | jq -rj '.choices[0].delta.content // ""' 2>/dev/null)
NCALLS=$(grep '^data: {' "$WORK/sse.txt" | sed 's/^data: //' | jq -r '[.choices[0].delta.tool_calls[]?.function.name//empty]|.[]' 2>/dev/null | grep -c . )
FIN=$(grep '^data: {' "$WORK/sse.txt" | sed 's/^data: //' | jq -r '.choices[0].finish_reason//empty' 2>/dev/null | grep -v '^$' | tail -1)
LEAK=no
case "$CONTENT" in *"<function"*|*"<param"*|*"CDATA"*|*"<tool_call>"*) LEAK=YES ;; esac
printf '%-16s finish=%-10s streamed-calls=%s LEAK-IN-STREAM=%s\n' "$1" "$FIN" "$NCALLS" "$LEAK"
[ "$LEAK" = YES ] && { echo " content was: $(printf '%s' "$CONTENT" | head -c 160)"; }
return 0
}
one "write-a-file" '"Write the file /work/hello.c containing a hello world program in C. Use the write tool."'
one "run-a-command" '"List the files in /work using the bash tool."'
one "plain-chat" '"In one sentence, what is a red-black tree?"'