Spaces:
Sleeping
Sleeping
File size: 1,954 Bytes
c024705 eeacc46 c024705 eeacc46 c024705 eeacc46 c024705 eeacc46 c024705 eeacc46 c024705 eeacc46 c024705 eeacc46 c024705 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
{
"register": {
"url": "https://prodevroger-ishingiro.hf.space/register",
"method": "POST",
"body_json": {
"username": "alice",
"password": "Secret123!"
},
"notes": "POST JSON in Body -> raw -> application/json"
},
"login": {
"url": "https://prodevroger-ishingiro.hf.space/login",
"method": "POST",
"body_json": {
"username": "alice",
"password": "Secret123!"
},
"notes": "On success server returns { ok: true, account: \"alice\" }"
},
"create_conversation": {
"url": "https://prodevroger-ishingiro.hf.space/conversations",
"method": "POST",
"body_json": {
"account": "alice"
},
"notes": "Requires authenticated account; server returns { id: \"<conv_id>\", new: true }"
},
"list_conversations": {
"url": "https://prodevroger-ishingiro.hf.space/conversations?account=alice",
"method": "GET",
"body_json": null,
"notes": "GET — returns { conversations: [ { id, preview, timestamp }, ... ] }"
},
"session": {
"url": "https://prodevroger-ishingiro.hf.space/session",
"method": "POST",
"body_json": {
"account": "alice"
},
"notes": "Use account for account-bound session, or omit account for IP-bound session"
},
"ask": {
"url": "https://prodevroger-ishingiro.hf.space/ask",
"method": "POST",
"body_json": {
"id": "<conv_id_or_omit_to_create>",
"query": "Hello, how can you help me today?",
"history": [],
"account": "alice"
},
"notes": "If id omitted server creates a new conversation. Include account when signed-in."
},
"upload_pdf_curl_example": {
"notes": "Use multipart/form-data; in Postman choose 'form-data' with key 'file' (type: file), optional 'id' and 'question'",
"curl": "curl -X POST \"https://prodevroger-ishingiro.hf.space/upload_pdf\" -F \"file=@/path/to/doc.pdf\" -F \"account=alice\" -F \"question=Summarize this PDF\""
}
}
|