(modelId: string)
| 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; |
no test coverage detected