unsloth/studio/backend/auth
Roland Tannous 659b08866e feat: backend API key auth + access-endpoint route for external OpenAI-compatible access
- Auto-generate sk-unsloth-* API key on model load, clear on unload
- Add dual-auth dependency: accepts JWT (Studio UI) or API key (external consumers)
- Relax auth on /v1/chat/completions and /v1/models to accept API key
- Add GET /api/inference/access-endpoint returning key, local URL, and external URL
- Store bind_host in app.state for external IP resolution
- Frontend dialog fetches key from backend, shows local + network URLs
2026-04-09 01:23:36 +00:00
..
.gitkeep root studio folder 2026-02-02 09:13:49 +00:00
__init__.py fix: remove old comments (#4292) 2026-03-14 16:50:13 +04:00
authentication.py feat: backend API key auth + access-endpoint route for external OpenAI-compatible access 2026-04-09 01:23:36 +00:00
hashing.py Final cleanup 2026-03-12 18:28:04 +00:00
storage.py fix: remove old comments (#4292) 2026-03-14 16:50:13 +04:00