fix: raise error when request param failed to convert

Summary:

Test Plan:
This commit is contained in:
Eric Huang 2025-02-28 16:51:08 -08:00
parent 7854af8b52
commit 710ffa88cd

View file

@ -104,7 +104,7 @@ def convert_to_pydantic(annotation: Any, value: Any) -> Any:
logger.warning(
f"Warning: direct client failed to convert parameter {value} into {annotation}: {e}",
)
return value
raise ValueError(f"Failed to convert parameter {value} into {annotation}: {e}") from e
class LlamaStackAsLibraryClient(LlamaStackClient):