metrics: support customer labels specified in request header (#10143)
This commit is contained in:
@@ -141,6 +141,9 @@ class GenerateReqInput:
|
||||
# Image gen grpc migration
|
||||
return_bytes: bool = False
|
||||
|
||||
# For customer metric labels
|
||||
customer_labels: Optional[Dict[str, str]] = None
|
||||
|
||||
def contains_mm_input(self) -> bool:
|
||||
return (
|
||||
has_valid_data(self.image_data)
|
||||
|
||||
Reference in New Issue
Block a user