Files

13 lines
242 B
Bash

BASE_URL="${FLOW_SERVER_URL:-$FLOW_URL}"
curl -X POST \
"$BASE_URL/v1/responses" \
-H "x-api-key: $FLOW_API_KEY" \
-H "Content-Type: application/json" \
-d @- <<EOF
{
"model": "$FLOW_ID",
"input": "Hello, my name is Alice"
}
EOF