Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ NewSSEParser
Function
NewSSEParser
aibridge/sse_parser.go:29–33 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
27
}
28
29
func
NewSSEParser() *SSEParser {
30
return
&SSEParser{
31
events: make(
map
[string][]SSEEvent),
32
}
33
}
34
35
func
(p *SSEParser) Parse(reader io.Reader) error {
36
scanner := bufio.NewScanner(reader)
Callers
4
TestAnthropicMessages
Function · 0.92
TestAnthropicMessagesModelThoughts
Function · 0.92
TestOpenAIChatCompletions
Function · 0.92
TestErrorHandling
Function · 0.92
Calls
no outgoing calls
Tested by
4
TestAnthropicMessages
Function · 0.74
TestAnthropicMessagesModelThoughts
Function · 0.74
TestOpenAIChatCompletions
Function · 0.74
TestErrorHandling
Function · 0.74