tabbyAPI-ollama/common
kingbri 1f46a1130c OAI: Restrict list permissions for API keys
API keys are not allowed to view all the admin's models, templates,
draft models, loras, etc. Basically anything that can be viewed
on the filesystem outside of anything that's currently loaded is
not allowed to be returned unless an admin key is present.

This change helps preserve user privacy while not erroring out on
list endpoints that the OAI spec requires.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-07-11 14:22:50 -04:00
..
args.py Tree: Format 2024-05-26 15:48:18 -07:00
auth.py OAI: Restrict list permissions for API keys 2024-07-11 14:22:50 -04:00
concurrency.py API + Model: Add blocks and checks for various load requests 2024-05-25 21:16:14 -04:00
config.py Tree: Update to cleanup globals 2024-03-12 23:59:30 -04:00
downloader.py Tree: Swap from map to list comprehensions 2024-05-25 21:16:14 -04:00
gen_logging.py Tree: Lint 2024-05-26 18:27:30 -07:00
logger.py API: Add HuggingFace downloader 2024-04-29 01:15:02 -04:00
model.py Tree: Ruff lint 2024-07-08 15:06:28 -04:00
networking.py Concurrency: Remove release_semaphore method 2024-05-19 10:42:26 -04:00
sampling.py Tree: Swap from map to list comprehensions 2024-05-25 21:16:14 -04:00
signals.py Signal: Fix signal handlers for uvicorn 2024-03-16 23:23:31 -04:00
templating.py Templates: Migrate to class 2024-04-21 23:28:14 -04:00
transformers_utils.py Tree: Add transformers_utils 2024-04-20 00:07:39 -04:00
utils.py Sampling: Copy over iterable overrides 2024-05-17 21:38:28 -04:00