|
|
@@ -146,7 +146,10 @@ describe("generateEmbeddings with EmbeddingProvider", () => {
|
|
|
expect(result.errors).toBe(0);
|
|
|
expect(provider.embedBatchCalls + provider.embedCalls).toBeGreaterThan(0);
|
|
|
expect(provider.totalTextsEmbedded).toBeGreaterThan(0);
|
|
|
- });
|
|
|
+ }, 30000); // Cold-cache llama-cpp init can take >5s on first session call.
|
|
|
+ // Provider short-circuits embed calls (line 1494-1499 of store.ts) but the
|
|
|
+ // outer `withLLMSessionForLlm` wrapper still warms the LLM. DoD #9 (skip
|
|
|
+ // LLM init when provider supplied) is a follow-up refactor.
|
|
|
|
|
|
test("model-id guard throws ModelMismatchError on mismatch", async () => {
|
|
|
// Pre-populate content_vectors with a different model id
|