Spaces:
Paused
Paused
|
Download apps/api/README.md from mohammed978/teteffd: direct link, hf CLI and curl.
- Browser
- Download file 2.48 kB
-
https://huggingface.co/spaces/mohammed978/teteffd/resolve/main/apps/api/README.md
- Command line
-
hf download hf://spaces/mohammed978/teteffd/apps/api/README.md
-
curl -L -o README.md https://huggingface.co/spaces/mohammed978/teteffd/resolve/main/apps/api/README.md
2.48 kB
WormGPT API
FastAPI service for the WormGPT platform.
Quick start
# 1. Create a virtualenv
python -m venv .venv
. .venv/bin/activate # Linux / macOS
# .venv\Scripts\activate # Windows PowerShell
# 2. Install
pip install -e ".[dev]"
# 3. Configure
cp ../../.env.example ../../.env
# edit ../../.env
# 4. Run
uvicorn app.main:app --reload --port 8000
Endpoints
GET /api/v1/healthlivenessGET /api/v1/health/readymongo + redis checkPOST /api/v1/auth/registersign up (status = pending)POST /api/v1/auth/loginreturns access + refreshPOST /api/v1/auth/refreshrotate access tokenGET /api/v1/auth/mecurrent userGET /api/v1/modelslist enabled modelsPOST /api/v1/models(admin) create modelPATCH /api/v1/models/{id}(admin) update modelPOST /api/v1/models/{id}/testping the modelGET /api/v1/system-prompts/summarylightweight list (no content)GET /api/v1/system-prompts(admin) full contentPOST /api/v1/system-prompts(admin) create with contentGET /api/v1/chat/conversationslistPOST /api/v1/chat/conversationscreatePOST /api/v1/chat/conversations/{id}/streamSSE chatGET /api/v1/chat/conversations/{id}with messagesPATCH /api/v1/chat/conversations/{id}/messages/{mid}editPOST /api/v1/chat/conversations/{id}/messages/{mid}/reactGET /api/v1/chat/folders/ POST /api/v1/chat/foldersGET /api/v1/memory/ POST /api/v1/memoryGET /api/v1/notificationsmark readGET /api/v1/search?q=...&kinds=conversation,message,model,canvas,memory,userGET /api/v1/canvas/ POST /api/v1/canvasGET /api/v1/canvas/{id}/versionsPOST /api/v1/canvas/{id}/restore/{v}POST /api/v1/research/runone-shot researchPOST /api/v1/research/streamstreaming research (SSE)POST /api/v1/web/searchweb searchGET /api/v1/web/fetch?url=...fetch + extractGET /api/v1/admin/stats(admin)GET /api/v1/admin/users(admin)POST /api/v1/admin/users/{id}/approve|rejectGET /api/v1/admin/audit-logs(admin)GET /api/v1/developer/models(admin) all modelsPOST /api/v1/developer/models/{id}/reveal(superadmin)
OpenAPI docs at http://localhost:8000/api/docs.