mjpsm's picture
Deploy Progression API (llama-cpp-python)
63d4e3a verified
Raw History Blame Contribute Delete
880 Bytes
#!/usr/bin/env bash
set -e
BASE_URL="${BASE_URL:-http://localhost:8000}"
curl -s -X POST "${BASE_URL}/v1/progression/generate" \
-H "Content-Type: application/json" \
-d '{
"version": "v1",
"knowledge_submission": "I created the video and showed the finished result first. It received 1,800 views and more engagement than my previous videos. I noticed viewers stayed longer when the final result appeared before the process.",
"wisdom": {
"content": "When I presented in class, showing the most interesting result before explaining the process got peoples attention.",
"chapterTitle": "Lead With the Result",
"BookTypeName": "Testimony",
"BookType": "Personal Record"
},
"village_goal": "Learn how to create engaging social media content",
"previous_activity_title": "Test a stronger opening hook"
}' | python3 -m json.tool