ui: strip path and weight extension from model id in single model mode (#25137)

This commit is contained in:
Pascal
2026-07-03 17:32:48 +02:00
committed by GitHub
parent 152d337fad
commit f113e02d5a
2 changed files with 15 additions and 5 deletions
+5
View File
@@ -37,3 +37,8 @@ export const MODEL_ACTIVATED_PARAMS_RE = /^[Aa]\d+(\.\d+)?[BbMmKkTt]$/;
* Container format segments to exclude from tags (every model uses these).
*/
export const MODEL_IGNORED_SEGMENTS = new Set(['GGUF', 'GGML']);
/**
* Matches a trailing weight file extension, e.g. `model.gguf` -> `model`.
*/
export const MODEL_WEIGHT_EXTENSION_RE = /\.(gguf|ggml)$/i;