diff --git a/src/promptflow-devkit/promptflow/_sdk/schemas/_fields.py b/src/promptflow-devkit/promptflow/_sdk/schemas/_fields.py index db4d4f08953..4e6ff5f86c5 100644 --- a/src/promptflow-devkit/promptflow/_sdk/schemas/_fields.py +++ b/src/promptflow-devkit/promptflow/_sdk/schemas/_fields.py @@ -26,6 +26,7 @@ def __init__(self, **kwargs): self.casing_transform = kwargs.pop("casing_transform", lambda x: x.lower()) self.pass_original = kwargs.pop("pass_original", False) super().__init__(**kwargs) + if isinstance(self.allowed_values, str): self.allowed_values = [self.allowed_values] self.allowed_values = [self.casing_transform(x) for x in self.allowed_values]