Match on the filename too for server mode.

This commit is contained in:
Adam Treat 2023-06-28 09:20:05 -04:00
parent 28d41d4f6d
commit 9560336490

View File

@ -173,7 +173,7 @@ QHttpServerResponse Server::handleCompletionRequest(const QHttpServerRequest &re
for (const ModelInfo &info : modelList) {
if (!info.installed)
continue;
if (modelRequested == info.name) {
if (modelRequested == info.name || modelRequested == info.filename) {
modelInfo = info;
break;
}