ai-cache update body buffer limit size (#1644)

This commit is contained in:
澄潭
2025-01-06 14:53:29 +08:00
committed by GitHub
parent 187a7b5408
commit 2501895b66
3 changed files with 8 additions and 2 deletions

View File

@@ -261,6 +261,7 @@ func checkStream(ctx *wrapper.HttpContext, log wrapper.Log) {
log.Errorf("unable to load content-type header from response: %v", err)
}
(*ctx).BufferResponseBody()
ctx.SetResponseBodyBufferLimit(defaultMaxBodyBytes)
}
}