From ea672786fb487c54983452774b618d64a2127f1f Mon Sep 17 00:00:00 2001 From: Miles Holland Date: Tue, 7 Jan 2025 12:02:03 -0500 Subject: [PATCH] noop --- src/promptflow-devkit/promptflow/_sdk/schemas/_fields.py | 1 + 1 file changed, 1 insertion(+) 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]