tabbyAPI-ollama/common
kingbri 3c08f46c51 Endpoints: Add key permission checker
This is a definite way to check if an authorized key is API or admin.
The endpoint only runs if the key is valid in the first place to keep
inline with the API's security model.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-03-18 00:53:27 -04:00
..
args.py Tree: Format 2024-03-13 00:02:55 -04:00
auth.py Endpoints: Add key permission checker 2024-03-18 00:53:27 -04:00
concurrency.py API: Fix blocking iterator execution 2024-03-16 23:23:31 -04:00
config.py Tree: Update to cleanup globals 2024-03-12 23:59:30 -04:00
gen_logging.py Tree: Format 2024-03-13 23:33:18 -04:00
logger.py Logging: Escape rich markup sequences 2024-03-11 00:28:48 -04:00
model.py Model: Fix load if model didn't load properly 2024-03-16 23:23:31 -04:00
sampling.py API + Model: Add speculative ngram decoding 2024-03-13 23:32:11 -04:00
signals.py Signal: Fix signal handlers for uvicorn 2024-03-16 23:23:31 -04:00
templating.py Tree: Format 2024-03-13 00:02:55 -04:00
utils.py Tree: Switch to async generators 2024-03-16 23:23:31 -04:00