tabbyAPI-ollama/endpoints/core/utils
kingbri bd9e78e19e API: Add inline exception for dummy models
If an API key sends a dummy model, it shouldn't error as the server
is catering to clients that expect specific OAI model names. This
is a problem with inline model loading since these names would error
by default. Therefore, add an exception if the provided name is in the
dummy model names (which also doubles as inline strict exceptions).

However, the dummy model names weren't configurable, so add a new
option to specify exception names, otherwise the default is gpt-3.5-turbo.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-11-17 21:15:45 -05:00
..
lora.py API: Migrate universal routes to core 2024-07-23 14:08:48 -04:00
model.py API: Add inline exception for dummy models 2024-11-17 21:15:45 -05:00