Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zhaoyu6
sglang
Commits
fba86b6b
"git@developer.sourcefind.cn:change/sglang.git" did not exist on "e07d0647299d8bc97f665498b608e635d4abf9f7"
Unverified
Commit
fba86b6b
authored
Apr 21, 2025
by
fzyzcjy
Committed by
GitHub
Apr 20, 2025
Browse files
Tiny improve error message (#5526)
parent
072b4d03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
python/sglang/lang/backend/runtime_endpoint.py
python/sglang/lang/backend/runtime_endpoint.py
+5
-1
No files found.
python/sglang/lang/backend/runtime_endpoint.py
View file @
fba86b6b
...
@@ -324,7 +324,11 @@ class RuntimeEndpoint(BaseBackend):
...
@@ -324,7 +324,11 @@ class RuntimeEndpoint(BaseBackend):
def
_assert_success
(
self
,
res
):
def
_assert_success
(
self
,
res
):
if
res
.
status_code
!=
200
:
if
res
.
status_code
!=
200
:
raise
RuntimeError
(
res
.
json
())
try
:
content
=
res
.
json
()
except
json
.
JSONDecodeError
:
content
=
res
.
text
raise
RuntimeError
(
content
)
def
compute_normalized_prompt_logprobs
(
input_logprobs
):
def
compute_normalized_prompt_logprobs
(
input_logprobs
):
...
...
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