MCPcopy Index your code
hub / github.com/coder/mux / createFakeModel

Function createFakeModel

src/node/services/sideQuestionService.test.ts:21–30  ·  view source on GitHub ↗
(modelId = "side-question-model")

Source from the content-addressed store, hash-verified

19});
20
21function createFakeModel(modelId = "side-question-model"): LanguageModel {
22 return {
23 specificationVersion: "v3",
24 provider: "test",
25 modelId,
26 supportedUrls: {},
27 doGenerate: () => Promise.reject(new Error("doGenerate unused in side-question tests")),
28 doStream: () => Promise.reject(new Error("doStream unused in side-question tests")),
29 };
30}
31
32/**
33 * Fake AIService for side-question tests. `getStreamInfo` defaults to

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected