Skip to content

Commit 608e827

Browse files
committed
Update Llama3VILAInferenceOperator to support optional image_metadata parameter type
- Changed the type hint for the image_metadata parameter from Dict to Dict | None, allowing for clearer handling of optional values in the inference operator. Signed-off-by: Victor Chang <vicchang@nvidia.com>
1 parent 14dbba4 commit 608e827

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

monai/deploy/operators/llama3_vila_inference_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def _create_json_result(
186186
text_response: str,
187187
request_id: str,
188188
prompt: str = None,
189-
image_metadata: Dict = None,
189+
image_metadata: Dict | None = None,
190190
) -> Dict[str, Any]:
191191
"""Create a JSON result from the text response."""
192192
result = {

0 commit comments

Comments
 (0)