Skip to content

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.

fix(test): zwei erfundene Katalog-Ids im stillen Test korrigiert

purple496db0557bf9
diff --git a/src/lib/__tests__/native-tool-providers.test.ts b/src/lib/__tests__/native-tool-providers.test.ts
index 93ae409b..bdbcdaf2 100644
--- a/src/lib/__tests__/native-tool-providers.test.ts
+++ b/src/lib/__tests__/native-tool-providers.test.ts
@@ -20,11 +20,20 @@ import {
// Real catalogue ids from /api/inference/v1/models, prefixed the way the model
// store keeps them (see prefixModelName).
+//
+// Two of the four were NOT real and had drifted unnoticed: this file claimed
+// Sao10K/L3.3-70B-Euryale-v2.3 and MiniMaxAI/MiniMax-M2 while the catalogue has
+// carried v2.2 and M2.7 for a while (apps/web/lib/chat/tier-models.ts:150 and
+// :287, checked 2026-09-02). Nothing went red, because the cloud path answers
+// 'native' for any id at all, so the test kept passing while proving none of
+// what its own comment promised. Corrected here; there is no automatic guard,
+// the catalogue lives in the web repo, so this list is checked by hand whenever
+// the catalogue moves.
const CLOUD = {
kimi: 'lu-cloud::moonshotai/Kimi-K2.6',
coder: 'lu-cloud::Qwen/Qwen3-Coder-480B-A35B-Instruct-Turbo',
- euryale: 'lu-cloud::Sao10K/L3.3-70B-Euryale-v2.3',
- minimax: 'lu-cloud::MiniMaxAI/MiniMax-M2',
+ euryale: 'lu-cloud::Sao10K/L3.1-70B-Euryale-v2.2',
+ minimax: 'lu-cloud::MiniMaxAI/MiniMax-M2.7',
}
describe('isNativeToolProvider', () => {
@@ -46,6 +55,15 @@ describe('getToolCallingStrategy — LU Cloud', () => {
}
})
+ it('the two ids that had drifted stay corrected', () => {
+ // A pin, not a proof: nothing local can tell a real catalogue id from a
+ // plausible one, because the catalogue lives in the web repo. What this
+ // does do is make the two ids load-bearing, so drifting them back is a red
+ // test instead of a silent no-op the way it was for weeks.
+ expect(CLOUD.euryale).toBe('lu-cloud::Sao10K/L3.1-70B-Euryale-v2.2')
+ expect(CLOUD.minimax).toBe('lu-cloud::MiniMaxAI/MiniMax-M2.7')
+ })
+
it('still routes Ollama models by family (regression guard for the local path)', () => {
expect(getToolCallingStrategy('qwen2.5-coder:7b')).toBe('native')
expect(getToolCallingStrategy('smollm2:360m')).toBe('hermes_xml')