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
change
sglang
Commits
b1cfb4e9
Unverified
Commit
b1cfb4e9
authored
Mar 29, 2025
by
fzyzcjy
Committed by
GitHub
Mar 29, 2025
Browse files
Fix BadRequestError wrong arguments and remove openai dependency (#4882)
parent
19e96e59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
python/sglang/srt/managers/multimodal_processors/base_processor.py
...lang/srt/managers/multimodal_processors/base_processor.py
+1
-4
No files found.
python/sglang/srt/managers/multimodal_processors/base_processor.py
View file @
b1cfb4e9
...
...
@@ -10,7 +10,6 @@ import numpy as np
import
PIL
import
transformers
from
decord
import
VideoReader
,
cpu
from
openai
import
BadRequestError
from
PIL
import
Image
from
sglang.srt.utils
import
load_audio
,
load_image
,
logger
...
...
@@ -252,9 +251,7 @@ class BaseMultimodalProcessor(ABC):
except
Exception
as
e
:
logger
.
error
(
f
"An exception occurred while loading images:
{
e
}
"
)
raise
BadRequestError
(
f
"An exception occurred while loading images:
{
e
}
"
)
raise
RuntimeError
(
f
"An exception occurred while loading images:
{
e
}
"
)
out
=
BaseMultiModalProcessorOutput
(
mm_data_hashes
=
hashes
,
...
...
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