MCPcopy
hub / github.com/coder/mux / createTestLanguageModel

Function createTestLanguageModel

src/node/services/streamManager.test.ts:38–47  ·  view source on GitHub ↗
(modelId = "cleanup-model")

Source from the content-addressed store, hash-verified

36import { shellQuote } from "@/common/utils/shell";
37
38function createTestLanguageModel(modelId = "cleanup-model"): LanguageModel {
39 return {
40 specificationVersion: "v3",
41 provider: "test",
42 modelId,
43 supportedUrls: {},
44 doGenerate: () => Promise.reject(new Error("doGenerate is unused in StreamManager tests")),
45 doStream: () => Promise.reject(new Error("doStream is unused in StreamManager tests")),
46 };
47}
48
49// Skip integration tests if TEST_INTEGRATION is not set
50const describeIntegration = shouldRunIntegrationTests() ? describe : describe.skip;

Callers 3

createStreamInfoForTestsFunction · 0.85
createCleanupModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected