Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

fix(test): recipe-ollama-dims pins a truncated width — native-width requests now omit the param (#3699)

Garry Tan532e5916553c
diff --git a/test/ai/recipe-ollama-dims.test.ts b/test/ai/recipe-ollama-dims.test.ts
index 4f1d86ce8b..e51f5449ac 100644
--- a/test/ai/recipe-ollama-dims.test.ts
+++ b/test/ai/recipe-ollama-dims.test.ts
@@ -28,8 +28,12 @@ describe('dims: ollama Matryoshka models', () => {
});
test('bare qwen3-embedding (no quant tag) also recognized', () => {
- expect(dimsProviderOptions('openai-compatible', 'qwen3-embedding', 1024))
- .toEqual({ openaiCompatible: { dimensions: 1024 } });
+ // 512 not 1024: bare qwen3-embedding's native width is 1024, and a
+ // request equal to the native width omits the param entirely (fixed-dim
+ // vLLM backends 400 on it) — pinned by dims-qwen3-native.test.ts. This
+ // test's job is only that the bare id is recognized as Matryoshka-capable.
+ expect(dimsProviderOptions('openai-compatible', 'qwen3-embedding', 512))
+ .toEqual({ openaiCompatible: { dimensions: 512 } });
});
test('unrelated openai-compat model returns undefined (regression guard)', () => {