We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35d7f88 commit e2ad3ffCopy full SHA for e2ad3ff
examples/server/server.cpp
@@ -445,7 +445,7 @@ int main(int argc, const char ** argv) {
445
const std::string model_path = args.get_string_param("--model-path");
446
if (std::filesystem::is_directory(model_path)) {
447
for (auto const &entry : std::filesystem::directory_iterator(model_path)) {
448
- if (!entry.is_directory()) {
+ if (!entry.is_directory() && entry.path().extension() == ".gguf") {
449
const std::string id = entry.path().stem();
450
model_map[id] = entry.path().string();
451
}
0 commit comments