fix(openai): bridge oversized websocket requests

This commit is contained in:
xlx0852 committed 2026-06-01 10:42:55 +08:00
1 parent 7ad2dc74dd
commit 08e19bb15c
8 files changed
+1257 -44

No files matched your search

@@ -1167,7 +1167,7 @@ func (h *OpenAIGatewayHandler) ResponsesWebSocket(c *gin.Context) {
defer func() {
_ = wsConn.CloseNow()
}()
wsConn.SetReadLimit(16 * 1024 * 1024)
wsConn.SetReadLimit(service.ResolveOpenAIWSClientReadLimitBytes(h.cfg))
ctx := c.Request.Context()
readCtx, cancel := context.WithTimeout(ctx, 30*time.Second)