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

Function start

src/services/api/openAICompatInferenceClient.test.ts:1002–1007  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

1000
1001 const stream = new ReadableStream({
1002 start(controller) {
1003 for (const event of events) {
1004 controller.enqueue(new TextEncoder().encode(event))
1005 }
1006 controller.close()
1007 },
1008 })
1009
1010 const client = new OpenAICompatInferenceClient({

Callers

nothing calls this directly

Calls 3

sseDataFunction · 0.85
enqueueMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected