Commit Graph

3 Commits

Author SHA1 Message Date
kingbri
593471a04d Auth: Fix init from YAML dict
A class can't have multiple constructors.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-11-15 23:00:12 -05:00
kingbri
bbb59d0747 Auth: Fix methods for writing and validation
These were not working properly. Make the YAML file get written
to properly and the validator to return a 401 when the bearer
token is invalid.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-11-15 00:55:15 -05:00
kingbri
b625bface9 OAI: Add API-based model loading/unloading and auth routes
Models can be loaded and unloaded via the API. Also add authentication
to use the API and for administrator tasks.

Both types of authorization use different keys.

Also fix the unload function to properly free all used vram.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-11-14 01:17:19 -05:00