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
b1cfb4e9
"vscode:/vscode.git/clone" did not exist on "85cfe94da4ca05cdfd6179ea81c0740b0843c62d"
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
Show 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
...
@@ -10,7 +10,6 @@ import numpy as np
import
PIL
import
PIL
import
transformers
import
transformers
from
decord
import
VideoReader
,
cpu
from
decord
import
VideoReader
,
cpu
from
openai
import
BadRequestError
from
PIL
import
Image
from
PIL
import
Image
from
sglang.srt.utils
import
load_audio
,
load_image
,
logger
from
sglang.srt.utils
import
load_audio
,
load_image
,
logger
...
@@ -252,9 +251,7 @@ class BaseMultimodalProcessor(ABC):
...
@@ -252,9 +251,7 @@ class BaseMultimodalProcessor(ABC):
except
Exception
as
e
:
except
Exception
as
e
:
logger
.
error
(
f
"An exception occurred while loading images:
{
e
}
"
)
logger
.
error
(
f
"An exception occurred while loading images:
{
e
}
"
)
raise
BadRequestError
(
raise
RuntimeError
(
f
"An exception occurred while loading images:
{
e
}
"
)
f
"An exception occurred while loading images:
{
e
}
"
)
out
=
BaseMultiModalProcessorOutput
(
out
=
BaseMultiModalProcessorOutput
(
mm_data_hashes
=
hashes
,
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