[Feature]: Support for multiple embedding types in a single inference call (#35829)
Signed-off-by: augusto.yjh <augusto.yjh@antgroup.com>
This commit is contained in:
+7
-1
@@ -6,7 +6,13 @@ GenerationTask = Literal["generate", "transcription", "realtime"]
|
||||
GENERATION_TASKS: tuple[GenerationTask, ...] = get_args(GenerationTask)
|
||||
|
||||
PoolingTask = Literal[
|
||||
"embed", "classify", "score", "token_embed", "token_classify", "plugin"
|
||||
"embed",
|
||||
"classify",
|
||||
"score",
|
||||
"token_embed",
|
||||
"token_classify",
|
||||
"plugin",
|
||||
"embed&token_classify",
|
||||
]
|
||||
POOLING_TASKS: tuple[PoolingTask, ...] = get_args(PoolingTask)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user