MCPcopy Create free account
hub / github.com/experdot/pointer / stopStreaming

Method stopStreaming

src/main/aiHandler.ts:332–343  ·  view source on GitHub ↗
(requestId: string)

Source from the content-addressed store, hash-verified

330 }
331
332 public async stopStreaming(requestId: string): Promise<void> {
333 const abortController = this.abortControllers.get(requestId)
334 const state = this.requestStates.get(requestId)
335
336 if (state && state.status === 'running') {
337 state.status = 'aborted'
338 }
339
340 if (abortController) {
341 abortController.abort()
342 }
343 }
344
345 public async testConnection(config: LLMConfig): Promise<{ success: boolean; error?: string }> {
346 try {

Callers 1

setupAIHandlersFunction · 0.45

Calls 2

abortMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected