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

Function setupAIHandlers

src/main/aiHandler.ts:409–420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

407export const aiHandler = new AIHandler()
408
409export function setupAIHandlers(): void {
410 ipcMain.handle('ai:send-message-streaming', (event, request: AIRequest, eventChannel: string) =>
411 aiHandler.sendMessageStreaming(event, request, eventChannel)
412 )
413 ipcMain.handle('ai:stop-streaming', (_event, requestId: string) =>
414 aiHandler.stopStreaming(requestId)
415 )
416 ipcMain.handle('ai:test-connection', (_event, config: LLMConfig) =>
417 aiHandler.testConnection(config)
418 )
419 ipcMain.handle('ai:get-models', (_event, config: LLMConfig) => aiHandler.getModels(config))
420}

Callers 1

index.tsFile · 0.90

Calls 4

sendMessageStreamingMethod · 0.80
stopStreamingMethod · 0.45
testConnectionMethod · 0.45
getModelsMethod · 0.45

Tested by

no test coverage detected