mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-12 13:00:39 +00:00
fix input_type values
This commit is contained in:
parent
610dea84c2
commit
e4037d03c2
1 changed files with 2 additions and 2 deletions
|
@ -163,8 +163,8 @@ class NVIDIAInferenceAdapter(Inference, ModelRegistryHelper):
|
|||
|
||||
if task_type is not None:
|
||||
task_type_options = {
|
||||
EmbeddingTaskType.document: "DOCUMENT",
|
||||
EmbeddingTaskType.query: "QUERY",
|
||||
EmbeddingTaskType.document: "passage",
|
||||
EmbeddingTaskType.query: "query",
|
||||
}
|
||||
if task_type not in task_type_options:
|
||||
raise ValueError(f"Invalid task_type: {task_type}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue