Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
use content type `application/x-ndjson` for streaming responses
Jeffrey Morgancff002b82447
diff --git a/server/routes.go b/server/routes.goindex c1a694c23..8e14279ad 100644--- a/server/routes.go+++ b/server/routes.go@@ -367,6 +367,7 @@ func Serve(ln net.Listener, extraOrigins []string) error {}func streamResponse(c *gin.Context, ch chan any) {+ c.Header("Content-Type", "application/x-ndjson")c.Stream(func(w io.Writer) bool {val, ok := <-chif !ok {