mirror of
https://github.com/storytold/craft-anything.git
synced 2026-11-05 20:47:45 +01:00
12a750e706
Local model servers were found by an open port alone, so any program listening on 8080 (a common port for local web servers) was offered as "llama.cpp server (local)" with no model, and chatting with it failed with "answered 404: 404 page not found". A local server is now offered only when its model list answers; one that answers with an error or a page that isn't JSON is something else. A server that doesn't answer in time is still offered, as before, since it may be loading. Fixes #30