v2 smoke: send the 300 KB prompt via -d @file (argv element limit); note in README
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -33,7 +33,9 @@ curl -s "$base/_crossbar/hosts" | grep -q '"beta":{"healthy":true' || fail "beta
|
||||
|
||||
# 3. with beta awake, a prompt that fits nowhere is a 400 (both slots too small? no — beta fits):
|
||||
# check the guard's refusal with a prompt beyond beta's 65536-per-slot too
|
||||
h=$(curl -s -o "$tmp/toolarge.json" -w '%{http_code}' -X POST -H 'Content-Type: application/json' -d "$(printf '{"model":"ornith-1.5-35b-a3b","messages":[{"role":"user","content":"%s"}]}' "$(head -c 300000 /dev/zero | tr '\0' 'x')")" "$base/opencode-a/v1/chat/completions")
|
||||
# (the body goes through a file: a 300 KB string cannot be a single argv element on Linux)
|
||||
{ printf '{"model":"ornith-1.5-35b-a3b","messages":[{"role":"user","content":"'; head -c 300000 /dev/zero | tr '\0' 'x'; printf '"}]}'; } > "$tmp/toolarge-req.json"
|
||||
h=$(curl -s -o "$tmp/toolarge.json" -w '%{http_code}' -X POST -H 'Content-Type: application/json' -d @"$tmp/toolarge-req.json" "$base/opencode-a/v1/chat/completions")
|
||||
[ "$h" = "400" ] && grep -q '"prompt too large"' "$tmp/toolarge.json" || fail "300 KB prompt should be 400 prompt too large, got $h $(cat "$tmp/toolarge.json")"
|
||||
|
||||
# 4. identity: hermes-x is locked to peer talos (header mode)
|
||||
|
||||
Reference in New Issue
Block a user