- 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
* fix: quotation marks
* diceware passphrase generation
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: Roland Tannous <rolandtannous@gravityq.ai>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Replace datetime.UTC with datetime.timezone.utc in authentication.py and storage.py
- Fixes ImportError on Python versions < 3.11
- timezone.utc works on Python 3.9+
Resolves#237