Add truncate_prompt_tokens param for vllm embedding

vllm embedding should allow sending "truncate_prompt_tokens". Links to https://github.com/vllm-project/vllm/blob/main/vllm/entrypoints/pooling/embed/protocol.py#L66
This commit is contained in:
Michael Möbius 2026-04-04 09:19:51 +02:00 committed by GitHub
parent a5322c6efc
commit c2e8da1e65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -150,6 +150,7 @@ class HostedVLLMEmbeddingConfig(BaseEmbeddingConfig):
"dimensions",
"encoding_format",
"user",
"truncate_prompt_tokens",
]
def map_openai_params(