14 lines
299 B
Bash
Executable File
14 lines
299 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
BASE_URL="${DUCK_API_URL:-http://127.0.0.1:8000}"
|
|
|
|
curl -fsS "${BASE_URL}/health"
|
|
|
|
curl -fsS -X POST "${BASE_URL}/v1/chat" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{
|
|
"message": "Скажи коротко, что ты DuckLM",
|
|
"debug": true
|
|
}'
|