Request: curl
return early if model isn't local, with better message
#1076
Labels
enhancement
New feature or request
good first issue
Good for newcomers
up for grabs
Tickets that no-one is currently working on
ux
LocalAI version:
https://github.com/go-skynet/LocalAI/tree/30f120ee6a7979aa4ffbd94ccdc1e58b94155a44
Environment, CPU architecture, OS, and Version:
Describe the bug
When placing a model name that doesn't exist, two issues happen:
curl
takes over 1 minuteall backends returned error: 23 errors occurred
To Reproduce
I am using a model name
foo.bin
(chosen because it doesn't match any downloaded):Formatting that
message
:Expected behavior
A desirable behavior is:
curl
returns quickly (<1 sec) when non-installed modelIn other words, the current behavior is a massive error message, and takes forever to actually show up. Ideally if a model isn't installed, a response comes immediately with a concise error message
The text was updated successfully, but these errors were encountered: