Skip to content

Commit

Permalink
PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsbatista committed Feb 20, 2024
1 parent 93f37c6 commit 2428de5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ def __init__(
"""

self.api_url = api_url
self.api_key = api_key.resolve_value() if api_key else None
self.document_creation_mode = document_creation_mode
self.unstructured_kwargs = unstructured_kwargs or {}
self.separator = separator
self.progress_bar = progress_bar

is_hosted_api = api_url == UNSTRUCTURED_HOSTED_API_URL
api_key = api_key.resolve_value() if api_key else None

# we check whether api_key is None or an empty string
if is_hosted_api and not api_key:
Expand All @@ -74,8 +74,6 @@ def __init__(
)
raise ValueError(msg)

self.api_key = api_key

def to_dict(self) -> Dict[str, Any]:
"""
Serialize this component to a dictionary.
Expand Down

0 comments on commit 2428de5

Please sign in to comment.