MCPcopy Create free account
hub / github.com/Noumena-Network/code / cancelRequest

Function cancelRequest

src/services/api/openAICompatWsV2Native.ts:199–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197 }
198
199 const cancelRequest = async () => {
200 if (cancelled) return
201 cancelled = true
202 await binding.wsV2Cancel?.(sessionId, requestId).catch(() => {})
203 }
204
205 const cancelAndClose = async () => {
206 await cancelRequest()

Callers 2

cancelAndCloseFunction · 0.70
cancelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected