The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[patch]: Fix not to cast to str type when `file_path` is None (#20057)
Hyeongchan Kim7824291252c8
diff --git a/libs/community/langchain_community/document_loaders/unstructured.py b/libs/community/langchain_community/document_loaders/unstructured.pyindex bc056ca702..f990fd185e 100644--- a/libs/community/langchain_community/document_loaders/unstructured.py+++ b/libs/community/langchain_community/document_loaders/unstructured.py@@ -213,7 +213,7 @@ def get_elements_from_api(from unstructured.partition.api import partition_via_apireturn partition_via_api(- filename=str(file_path),+ filename=str(file_path) if file_path is not None else None,file=file,api_key=api_key,api_url=api_url,