🐛 fix(base.py): make frontend_node field in PromptValidationResponse optional to handle cases where it is not provided

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-04 07:05:10 -03:00
commit 53c5a3ccde

View file

@ -42,7 +42,7 @@ class CodeValidationResponse(BaseModel):
class PromptValidationResponse(BaseModel):
input_variables: list
# object return for tweak call
frontend_node: FrontendNodeRequest | object
frontend_node: Optional[FrontendNodeRequest] = None
INVALID_CHARACTERS = {