mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-13 21:29:57 +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:
|
if task_type is not None:
|
||||||
task_type_options = {
|
task_type_options = {
|
||||||
EmbeddingTaskType.document: "DOCUMENT",
|
EmbeddingTaskType.document: "passage",
|
||||||
EmbeddingTaskType.query: "QUERY",
|
EmbeddingTaskType.query: "query",
|
||||||
}
|
}
|
||||||
if task_type not in task_type_options:
|
if task_type not in task_type_options:
|
||||||
raise ValueError(f"Invalid task_type: {task_type}")
|
raise ValueError(f"Invalid task_type: {task_type}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue