✨ Feature Release — Dashboard Session Auth for Models Endpoint
Dashboard users can now access /v1/models via their existing session when API key auth is required.
✨ New Features
- JWT Session Auth Fallback — When
requireAuthForModelsis enabled, the/v1/modelsendpoint now accepts both API key (Bearer token) for external clients and the dashboard JWT session cookie (auth_token), allowing logged-in dashboard users to view models without needing an explicit API key (PR #110 by @nyatoru)
🔧 Improvements
- 401 instead of 404 — Authentication failures on
/v1/modelsnow return401 Unauthorizedwith a structured JSON error body (OpenAI-compatible format) instead of a generic404 Not Found - Simplified auth logic — Refactored the JWT cookie verification, removing redundant same-origin detection (~60 lines) since the
sameSite:lax+httpOnlycookie flags already provide CSRF protection
Full Changelog: v1.1.1...v1.2.0