Skip to content

Commit

Permalink
fix: Refactor PythonREPLToolComponent, update template, and add suppo…
Browse files Browse the repository at this point in the history
…rt for None value on secretStrInput (langflow-ai#3741)

* refactor: Refactor PythonREPLToolComponent to use pydantic and langchain_utilities

* update template

* add suport for None value on secretStrInput
  • Loading branch information
anovazzi1 authored and diogocabral committed Nov 26, 2024
1 parent cf2a191 commit 72ce9a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/base/langflow/inputs/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ def validate_value(cls, v: Any, _info):
)
elif isinstance(v, (AsyncIterator, Iterator)):
value = v
elif v is None:
value = None
else:
raise ValueError(f"Invalid value type `{type(v)}` for input `{_info.data['name']}`")
return value
Expand Down

0 comments on commit 72ce9a7

Please sign in to comment.