MCPcopy Create free account
hub / github.com/anomalyco/opencode / responsesStream

Function responsesStream

packages/opencode/test/session/llm-native.test.ts:84–89  ·  view source on GitHub ↗
(chunks: unknown[])

Source from the content-addressed store, hash-verified

82)
83
84function responsesStream(chunks: unknown[]) {
85 return new Response(chunks.map((chunk) => `data: ${JSON.stringify(chunk)}`).join("\n\n") + "\n\n", {
86 status: 200,
87 headers: { "Content-Type": "text/event-stream" },
88 })
89}
90
91type NativeRequestInput = Parameters<typeof LLMNative.request>[0]
92

Callers 1

llm-native.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected