Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
c94d097a
Unverified
Commit
c94d097a
authored
Jan 11, 2026
by
Michael Feil
Committed by
GitHub
Jan 11, 2026
Browse files
fix: get_body_limit() body limit size for response middleware. (#5268)
Signed-off-by:
michaelfeil
<
me@michaelfeil.eu
>
parent
2f9812aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib/llm/src/http/service/openai.rs
lib/llm/src/http/service/openai.rs
+1
-1
No files found.
lib/llm/src/http/service/openai.rs
View file @
c94d097a
...
@@ -224,7 +224,7 @@ pub async fn smart_json_error_middleware(request: Request<Body>, next: Next) ->
...
@@ -224,7 +224,7 @@ pub async fn smart_json_error_middleware(request: Request<Body>, next: Next) ->
if
response
.status
()
==
StatusCode
::
UNPROCESSABLE_ENTITY
{
if
response
.status
()
==
StatusCode
::
UNPROCESSABLE_ENTITY
{
let
(
_
parts
,
body
)
=
response
.into_parts
();
let
(
_
parts
,
body
)
=
response
.into_parts
();
let
body_bytes
=
axum
::
body
::
to_bytes
(
body
,
usize
::
MAX
)
let
body_bytes
=
axum
::
body
::
to_bytes
(
body
,
get_body_limit
()
)
.await
.await
.unwrap_or_default
();
.unwrap_or_default
();
let
error_message
=
String
::
from_utf8_lossy
(
&
body_bytes
)
.to_string
();
let
error_message
=
String
::
from_utf8_lossy
(
&
body_bytes
)
.to_string
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment