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

Function createCleanupModel

src/node/services/streamManager.test.ts:1019–1029  ·  view source on GitHub ↗
(modelId: string)

Source from the content-addressed store, hash-verified

1017 const runtime = LOCAL_TEST_RUNTIME;
1018
1019 function createCleanupModel(modelId: string): {
1020 model: LanguageModel;
1021 getCleanupCalls: () => number;
1022 } {
1023 let cleanupCalls = 0;
1024 const model = createTestLanguageModel(modelId);
1025 attachLanguageModelCleanup(model, () => {
1026 cleanupCalls += 1;
1027 });
1028 return { model, getCleanupCalls: () => cleanupCalls };
1029 }
1030
1031 async function processCleanupStream(params: {
1032 workspaceId: string;

Callers 1

Calls 2

createTestLanguageModelFunction · 0.85

Tested by

no test coverage detected