Skip to content

Commit e0c6721

Browse files
committed
do not limit resp body reading
1 parent 7382f25 commit e0c6721

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/llmobs/transport/transport.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,7 @@ func readErrorBody(resp *http.Response) string {
276276
if !strings.Contains(contentType, "application/json") {
277277
return ""
278278
}
279-
// Limit reading to 1KB to avoid reading huge error responses
280-
body, err := io.ReadAll(io.LimitReader(resp.Body, 1024))
279+
body, err := io.ReadAll(resp.Body)
281280
if err != nil {
282281
return ""
283282
}

0 commit comments

Comments
 (0)