mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-25 00:59:07 +08:00
fix: Refactor PythonREPLToolComponent, update template, and add support for None value on secretStrInput (#3741)
* refactor: Refactor PythonREPLToolComponent to use pydantic and langchain_utilities * update template * add suport for None value on secretStrInput
This commit is contained in:
@ -273,6 +273,8 @@ class SecretStrInput(BaseInputMixin, DatabaseLoadMixin):
|
||||
)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user