MCPcopy Index your code
hub / github.com/anomalyco/opencode / createEventResponse

Function createEventResponse

packages/opencode/test/session/llm.test.ts:747–752  ·  view source on GitHub ↗
(chunks: unknown[], includeDone = false)

Source from the content-addressed store, hash-verified

745}
746
747function createEventResponse(chunks: unknown[], includeDone = false) {
748 return new Response(createEventStream(chunks, includeDone), {
749 status: 200,
750 headers: { "Content-Type": "text/event-stream" },
751 })
752}
753
754describe("session.llm.stream", () => {
755 const vivgridFixture = { providerID: "vivgrid", modelID: "gemini-3.1-pro-preview" }

Callers 1

llm.test.tsFile · 0.85

Calls 1

createEventStreamFunction · 0.70

Tested by

no test coverage detected