mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 05:09:51 +08:00
Add synchronized YouTube learning, a plugin-driven visualizer catalog, and Hermes, OpenClaw, and DeepSeek agent harnesses. Refresh Reading, Knowledge, Partner status, guided updates, documentation, translations, and release notes for v1.6.2.
25 lines
849 B
TypeScript
25 lines
849 B
TypeScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
|
|
import { knowledgeEngineGroup } from "../lib/knowledge-engine-group";
|
|
|
|
test("knowledge engines: built-in providers stay in their expected deployment group", () => {
|
|
for (const id of ["llamaindex", "pageindex-oss", "graphrag", "lightrag"]) {
|
|
assert.equal(knowledgeEngineGroup({ id }), "local", id);
|
|
}
|
|
|
|
assert.equal(knowledgeEngineGroup({ id: "lightrag-server" }), "server");
|
|
|
|
for (const id of ["pageindex", "ima"]) {
|
|
assert.equal(knowledgeEngineGroup({ id }), "cloud", id);
|
|
}
|
|
});
|
|
|
|
test("knowledge engines: unknown providers fall back to their credential requirement", () => {
|
|
assert.equal(
|
|
knowledgeEngineGroup({ id: "future-hosted", requires_api_key: true }),
|
|
"cloud",
|
|
);
|
|
assert.equal(knowledgeEngineGroup({ id: "future-local" }), "local");
|
|
});
|