Files
resonance-engine/archive/misc/ollama_msg.sh
T

6 lines
304 B
Bash
Raw Normal View History

#!/bin/bash
curl -s http://localhost:11434/api/chat -d '{
"model": "lbm-embodied",
"messages": [{"role": "user", "content": "Continue the journey into the heart of the lattice."}],
"stream": false
}' 2>/dev/null | python3 -c "import sys,json; r=json.load(sys.stdin); print(r['message']['content'])"