Generated for git.nexlab.net/nexlab/aisbf (v0.99.46, Python 3.8–3.12, FastAPI/uvicorn on port 17765).
Drop Dockerfile and compose.yaml at the repo root (same dir as requirements.txt, setup.py, main.py).
git clone https://git.nexlab.net/nexlab/aisbf.git
cd aisbf
# place Dockerfile + compose.yaml here
mkdir -p aisbf-config aisbf-data
docker compose up -d --buildDashboard: http://localhost:17765/dashboard (admin/admin).
libsecp256k1-devis pulled in at build time forbitcoinlib/web3/eth-accountcrypto stack (required even if you don't use crypto payments — the packages won't install otherwise).curl_cffiis optional upstream; left as-is (will fall back cleanly if wheel missing).- Config persists in
./aisbf-config(mounted at/root/.aisbf). If you hitFileNotFoundError: autoselect.json, drop a validautoselect.jsoninto./aisbf-config/before starting — the installer doesn't always seed it. Example template:
{
"autoselect": {
"nsfw": false,
"privacy": false,
"classify_nsfw": false,
"classify_privacy": false,
"classify_semantic": false,
"model_name": "autoselect",
"description": "Auto-selects the best rotating model based on user prompt analysis",
"selection_model": "general",
"fallback": "general",
"capabilities": ["t2t", "reasoning", "multimodal"],
"available_models": []
}
}- SQLite by default (stored under
/root/.local/share/aisbf→./aisbf-data). For MySQL/Redis, add services tocompose.yamland pointaisbf.jsonat them. - Container runs as root for simplicity; tighten with a
USERstep if exposing to untrusted networks.