12 lines
327 B
Bash
12 lines
327 B
Bash
#!/bin/bash
|
|
# Try minimal test
|
|
RESP=$(curl -s --noproxy '*' http://127.0.0.1:11434/api/generate \
|
|
-d '{"model":"qwen3","prompt":"Bonjour","stream":false}' \
|
|
--max-time 60)
|
|
echo "$RESP" | python3 -c "
|
|
import sys,json
|
|
d=json.load(sys.stdin)
|
|
print('LEN:',len(d.get('response','')))
|
|
print('RESP:',d.get('response','')[:200])
|
|
"
|