strip query params from URLs for model downloads, less spam on macOS for lines that start with ggml_*

This commit is contained in:
lone-cloud 2025-11-24 03:43:19 -08:00
parent ba80794725
commit c9d8910a64
4 changed files with 24 additions and 22 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "gerbil", "name": "gerbil",
"productName": "Gerbil", "productName": "Gerbil",
"version": "1.10.0", "version": "1.10.1",
"description": "Run Large Language Models locally", "description": "Run Large Language Models locally",
"main": "out/main/index.js", "main": "out/main/index.js",
"homepage": "./", "homepage": "./",
@ -40,7 +40,7 @@
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.39.1", "@eslint/js": "^9.39.1",
"@types/node": "^24.10.1", "@types/node": "^24.10.1",
"@types/react": "^19.2.6", "@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"@types/yauzl": "^2.10.3", "@types/yauzl": "^2.10.3",
"@typescript-eslint/eslint-plugin": "^8.47.0", "@typescript-eslint/eslint-plugin": "^8.47.0",
@ -70,8 +70,8 @@
"@codemirror/view": "^6.38.8", "@codemirror/view": "^6.38.8",
"@fontsource/inter": "^5.2.8", "@fontsource/inter": "^5.2.8",
"@huggingface/gguf": "^0.3.2", "@huggingface/gguf": "^0.3.2",
"@mantine/core": "^8.3.8", "@mantine/core": "^8.3.9",
"@mantine/hooks": "^8.3.8", "@mantine/hooks": "^8.3.9",
"@uiw/react-codemirror": "^4.25.3", "@uiw/react-codemirror": "^4.25.3",
"electron-updater": "^6.6.2", "electron-updater": "^6.6.2",
"execa": "^9.6.0", "execa": "^9.6.0",

View file

@ -132,7 +132,7 @@ export function filterSpam(output: string) {
/^llama_kv_cache/, /^llama_kv_cache/,
/^set_abort_callback:/, /^set_abort_callback:/,
/^attach_threadpool:/, /^attach_threadpool:/,
/^ggml_vulkan:/, /^ggml_/,
/^Namespace\(/, /^Namespace\(/,
/^==========$/, /^==========$/,
/^Loading Chat Completions Adapter:/, /^Loading Chat Completions Adapter:/,

View file

@ -32,10 +32,12 @@ function parseHuggingFaceUrl(url: string) {
); );
if (hfMatch) { if (hfMatch) {
const pathWithQuery = hfMatch[3];
const pathWithoutQuery = pathWithQuery.split('?')[0];
return { return {
author: hfMatch[1], author: hfMatch[1],
model: hfMatch[2], model: hfMatch[2],
filename: basename(hfMatch[3]), filename: basename(pathWithoutQuery),
}; };
} }

View file

@ -981,9 +981,9 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@mantine/core@npm:^8.3.8": "@mantine/core@npm:^8.3.9":
version: 8.3.8 version: 8.3.9
resolution: "@mantine/core@npm:8.3.8" resolution: "@mantine/core@npm:8.3.9"
dependencies: dependencies:
"@floating-ui/react": "npm:^0.27.16" "@floating-ui/react": "npm:^0.27.16"
clsx: "npm:^2.1.1" clsx: "npm:^2.1.1"
@ -992,19 +992,19 @@ __metadata:
react-textarea-autosize: "npm:8.5.9" react-textarea-autosize: "npm:8.5.9"
type-fest: "npm:^4.41.0" type-fest: "npm:^4.41.0"
peerDependencies: peerDependencies:
"@mantine/hooks": 8.3.8 "@mantine/hooks": 8.3.9
react: ^18.x || ^19.x react: ^18.x || ^19.x
react-dom: ^18.x || ^19.x react-dom: ^18.x || ^19.x
checksum: 10c0/7027f8b632262b7fc2e29f61a7d8e6f6bc6426f7e5ea93baf031484cf915615e9e36e4799e849cc85d29a2eddc57557d041310c16286a537ed0779bca72cda92 checksum: 10c0/552e114b41738149b432dbf721155b8ea433106568185cd0bf8eddae791166de42e575d999e13f86ad78d34a8290620feaed6c86ddda3becd517923654a0e70b
languageName: node languageName: node
linkType: hard linkType: hard
"@mantine/hooks@npm:^8.3.8": "@mantine/hooks@npm:^8.3.9":
version: 8.3.8 version: 8.3.9
resolution: "@mantine/hooks@npm:8.3.8" resolution: "@mantine/hooks@npm:8.3.9"
peerDependencies: peerDependencies:
react: ^18.x || ^19.x react: ^18.x || ^19.x
checksum: 10c0/5b140aad8881b27b2930c82bc39886c8076ad88ca41ab7c177e3e5fc5d480564189c1449a2acee4a90bd7beeb21a0458e0c3952bb45be75ac2d2e16d27865238 checksum: 10c0/c414ea2b8b725a40a3115cbd1346d43f68b350a1b6472295a72e346c19bc06b524b13915dbeda73a0f29c391868413ff77bc2afeb8b28a1c950945bc725ad50c
languageName: node languageName: node
linkType: hard linkType: hard
@ -1431,12 +1431,12 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/react@npm:^19.2.6": "@types/react@npm:^19.2.7":
version: 19.2.6 version: 19.2.7
resolution: "@types/react@npm:19.2.6" resolution: "@types/react@npm:19.2.7"
dependencies: dependencies:
csstype: "npm:^3.2.2" csstype: "npm:^3.2.2"
checksum: 10c0/23b1100f88662ce9f9e4fcca3a2b4ef9fff1ecde24ede2b2dcbd07731e48d6946fd7fd156cd133f5b25321694b0569cd9b8dd30b22c4e076d1cf4c8cdd9a75cb checksum: 10c0/a7b75f1f9fcb34badd6f84098be5e35a0aeca614bc91f93d2698664c0b2ba5ad128422bd470ada598238cebe4f9e604a752aead7dc6f5a92261d0c7f9b27cfd1
languageName: node languageName: node
linkType: hard linkType: hard
@ -3769,10 +3769,10 @@ __metadata:
"@eslint/js": "npm:^9.39.1" "@eslint/js": "npm:^9.39.1"
"@fontsource/inter": "npm:^5.2.8" "@fontsource/inter": "npm:^5.2.8"
"@huggingface/gguf": "npm:^0.3.2" "@huggingface/gguf": "npm:^0.3.2"
"@mantine/core": "npm:^8.3.8" "@mantine/core": "npm:^8.3.9"
"@mantine/hooks": "npm:^8.3.8" "@mantine/hooks": "npm:^8.3.9"
"@types/node": "npm:^24.10.1" "@types/node": "npm:^24.10.1"
"@types/react": "npm:^19.2.6" "@types/react": "npm:^19.2.7"
"@types/react-dom": "npm:^19.2.3" "@types/react-dom": "npm:^19.2.3"
"@types/yauzl": "npm:^2.10.3" "@types/yauzl": "npm:^2.10.3"
"@typescript-eslint/eslint-plugin": "npm:^8.47.0" "@typescript-eslint/eslint-plugin": "npm:^8.47.0"