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
vllm_cscc
Commits
a30c0935
Unverified
Commit
a30c0935
authored
Feb 20, 2025
by
Roger Wang
Committed by
GitHub
Feb 20, 2025
Browse files
[Bugfix] Add `mm_processor_kwargs` to chat-related protocols (#13644)
parent
c7b07a95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
vllm/entrypoints/openai/protocol.py
vllm/entrypoints/openai/protocol.py
+8
-0
No files found.
vllm/entrypoints/openai/protocol.py
View file @
a30c0935
...
...
@@ -974,6 +974,10 @@ class EmbeddingChatRequest(OpenAIBaseModel):
description
=
(
"Additional kwargs to pass to the template renderer. "
"Will be accessible by the chat template."
),
)
mm_processor_kwargs
:
Optional
[
Dict
[
str
,
Any
]]
=
Field
(
default
=
None
,
description
=
(
"Additional kwargs to pass to the HF processor."
),
)
priority
:
int
=
Field
(
default
=
0
,
description
=
(
...
...
@@ -1394,6 +1398,10 @@ class TokenizeChatRequest(OpenAIBaseModel):
description
=
(
"Additional kwargs to pass to the template renderer. "
"Will be accessible by the chat template."
),
)
mm_processor_kwargs
:
Optional
[
Dict
[
str
,
Any
]]
=
Field
(
default
=
None
,
description
=
(
"Additional kwargs to pass to the HF processor."
),
)
@
model_validator
(
mode
=
"before"
)
@
classmethod
...
...
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