The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(neuron): an unknown uploader's name that says more than the search is not an original
purple143701fd1706
diff --git a/src/components/models/DiscoverModels.tsx b/src/components/models/DiscoverModels.tsxindex 619b4a81..c30a9131 100644--- a/src/components/models/DiscoverModels.tsx+++ b/src/components/models/DiscoverModels.tsx@@ -1252,7 +1252,7 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0, o{/* HuggingFace Search Results */}{hfSearchResults.length > 0 && (() => {const wantsOriginal = !!originalFor && search.trim() === originalFor- const { originals, changed } = wantsOriginal ? originalsFirst(hfSearchResults) : { originals: hfSearchResults, changed: [] }+ const { originals, changed } = wantsOriginal ? originalsFirst(hfSearchResults, originalFor) : { originals: hfSearchResults, changed: [] }const tiles = (list: DiscoverModel[]) => list.map((model, i) => (<motion.div key={model.name + i} className={skin.cls.tileWrap} initial={{ opacity: 0, y: 8 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: Math.min(i, 12) * 0.025 }}><skin.ModelTilediff --git a/src/lib/__tests__/original-search.test.ts b/src/lib/__tests__/original-search.test.tsindex 4e5466bf..8aa1af26 100644--- a/src/lib/__tests__/original-search.test.ts+++ b/src/lib/__tests__/original-search.test.ts@@ -32,4 +32,11 @@ describe('original search', () => {expect(originals.map((m) => m.description)).toEqual(['unsloth/Qwen3.5-9B-GGUF', 'mradermacher/Qwen3.5-9B-GGUF'])expect(changed.map((m) => m.description)).toEqual(['DavidAU/Qwen3.5-9B-The-Defiant-Heretic-GGUF', 'x/Qwen3.5-9B-abliterated-GGUF'])})++ it('counts an unknown uploader\'s name that says more than the search as changed (Mac, 31.10.)', () => {+ const hf = ['unsloth/Qwen3.5-9B-GGUF', 'Jackrong/Qwen3.5-9B-DeepSeek-V4-Flash-GGUF', 'AtomicChat/Qwen3.5-9B-DFlash-GGUF', 'AtomicChat/Qwen3.5-9B-GGUF', 'bartowski/Qwen_Qwen3.5-9B-GGUF'].map(hit)+ const { originals, changed } = originalsFirst(hf, 'Qwen3.5 9B')+ expect(originals.map((m) => m.description)).toEqual(['unsloth/Qwen3.5-9B-GGUF', 'bartowski/Qwen_Qwen3.5-9B-GGUF', 'AtomicChat/Qwen3.5-9B-GGUF'])+ expect(changed.map((m) => m.description)).toEqual(['Jackrong/Qwen3.5-9B-DeepSeek-V4-Flash-GGUF', 'AtomicChat/Qwen3.5-9B-DFlash-GGUF'])+ })})diff --git a/src/lib/original-search.ts b/src/lib/original-search.tsindex 9f497be2..ace96010 100644--- a/src/lib/original-search.ts+++ b/src/lib/original-search.ts@@ -27,16 +27,32 @@ export function looksTweaked(repoId: string): boolean {return TWEAK_WORDS.some((w) => words.includes(w))}+/** Name parts that say nothing about a change. */+const NEUTRAL_WORDS = ['gguf', 'instruct', 'it', 'chat', 'base', 'i1', 'imatrix', 'imat']+function repoOf(m: DiscoverModel): string {return m.description || m.name}+const words = (t: string) => t.toLowerCase().split(/[^a-z0-9.]+/).filter(Boolean)++/** A repo from an unknown uploader whose name says more than the search+ * ("Qwen3.5-9B-DeepSeek-V4-Flash" for "Qwen3.5 9B") is someone's own+ * version (Mac proof 31.10.2026: two such hits sat among the originals). */+function saysMore(repoId: string, query: string): boolean {+ const asked = words(query)+ if (asked.length === 0) return false+ const [uploader, name = ''] = repoId.split('/')+ if (PLAIN_UPLOADERS.includes(uploader.toLowerCase())) return false+ return words(name).some((w) => !NEUTRAL_WORDS.includes(w) && !asked.some((a) => a === w || a.startsWith(w)))+}+/** Originals first (plain uploaders before the rest, the search's own order* kept inside each group), then the changed versions. */-export function originalsFirst(models: DiscoverModel[]): { originals: DiscoverModel[]; changed: DiscoverModel[] } {+export function originalsFirst(models: DiscoverModel[], query = ''): { originals: DiscoverModel[]; changed: DiscoverModel[] } {const originals: DiscoverModel[] = []const changed: DiscoverModel[] = []- for (const m of models) (looksTweaked(repoOf(m)) ? changed : originals).push(m)+ for (const m of models) (looksTweaked(repoOf(m)) || saysMore(repoOf(m), query) ? changed : originals).push(m)const plain = (m: DiscoverModel) => PLAIN_UPLOADERS.includes(repoOf(m).split('/')[0].toLowerCase()) ? 0 : 1originals.sort((a, b) => plain(a) - plain(b))return { originals, changed }diff --git a/src/stores/__tests__/discover-query-handoff.test.ts b/src/stores/__tests__/discover-query-handoff.test.tsindex 9ac5f9ac..a9db0611 100644--- a/src/stores/__tests__/discover-query-handoff.test.ts+++ b/src/stores/__tests__/discover-query-handoff.test.ts@@ -42,6 +42,6 @@ describe('Discover search hand-off', () => {expect(page).toMatch(/originalFor=\{originalFor\}/)const discover = readFileSync(resolve(__dirname, '../../components/models/DiscoverModels.tsx'), 'utf8')expect(discover).toMatch(/const wantsOriginal = !!originalFor && search\.trim\(\) === originalFor/)- expect(discover).toMatch(/originalsFirst\(hfSearchResults\)/)+ expect(discover).toMatch(/originalsFirst\(hfSearchResults, originalFor\)/)})})