MCPcopy Create free account
hub / github.com/codehamr/codehamr / collect

Function collect

internal/llm/llm_test.go:21–27  ·  view source on GitHub ↗
(ch <-chan Event)

Source from the content-addressed store, hash-verified

19
20func collect(ch <-chan Event) []Event {
21 var evs []Event
22 for e := range ch {
23 evs = append(evs, e)
24 }
25 return evs
26}
27
28// sseOK writes a Responses stream: each event as `event:`+`data:` the way
29// OpenAI and vLLM emit it, closed by response.completed carrying the usage.
30func sseOK(w http.ResponseWriter, events []string) {

Calls

no outgoing calls

Tested by

no test coverage detected