MCPcopy Index your code
hub / github.com/LumaAI-API/Luma-API / setSSEHeaders

Function setSSEHeaders

chat.go:207–213  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

205}
206
207func setSSEHeaders(c *gin.Context) {
208 c.Writer.Header().Set("Content-Type", "text/event-stream")
209 c.Writer.Header().Set("Cache-Control", "no-cache")
210 c.Writer.Header().Set("Connection", "keep-alive")
211 c.Writer.Header().Set("Transfer-Encoding", "chunked")
212 c.Writer.Header().Set("X-Accel-Buffering", "no")
213}

Callers 1

ChatCompletionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected