tabbyAPI-ollama/common
kingbri 27d2d5f3d2 Config + Model: Allow for default fallbacks from config for model loads
Previously, the parameters under the "model" block in config.yml only
handled the loading of a model on startup. This meant that any subsequent
API request required each parameter to be filled out or use a sane default
(usually defaults to the model's config.json).

However, there are cases where admins may want an argument from the
config to apply if the parameter isn't provided in the request body.
To help alleviate this, add a mechanism that works like sampler overrides
where users can specify a flag that acts as a fallback.

Therefore, this change both preserves the source of truth of what
parameters the admin is loading and adds some convenience for users
that want customizable defaults for their requests.

This behavior may change in the future, but I think it solves the
issue for now.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-07-06 17:50:58 -04:00
..
args.py Tree: Format 2024-05-26 15:48:18 -07:00
auth.py API: Cleanup permission endpoint 2024-03-18 15:13:26 -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 Config + Model: Allow for default fallbacks from config for model loads 2024-07-06 17:50:58 -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