Skip to content

Commit

Permalink
refactor: replace StrInput with MultilineInput for URL fields (Firecr…
Browse files Browse the repository at this point in the history
…awlAPI) (#6160)

* 📝 (firecrawl_crawl_api.py): update StrInput to MultilineInput for better handling of URL input
📝 (firecrawl_scrape_api.py): update StrInput to MultilineInput for better handling of URL input

* [autofix.ci] apply automated fixes

* ✨ (firecrawl_crawl_api.py): introduce StrInput class to langflow.io module for handling string inputs in the API

* [autofix.ci] apply automated fixes

* ✨ (changes-filter.yaml): add new directories to components list for langflow schema and utils to be included in changes filtering

* ✨ (changes-filter.yaml): add new directory "src/backend/base/langflow/graph/" to components list for changes filtering in the workspace.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
Cristhianzl and autofix-ci[bot] authored Feb 7, 2025
1 parent 414797f commit 8208310
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .github/changes-filter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ components:
- "src/frontend/tests/extended/features/**"
- "src/frontend/tests/extended/regression/**"
- "src/backend/base/langflow/custom/**"
- "src/backend/base/langflow/schema/**"
- "src/backend/base/langflow/graph/**"
- "src/backend/base/langflow/utils/**"

workspace:
- "src/backend/base/langflow/inputs/**"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import uuid

from langflow.custom import Component
from langflow.io import (
DataInput,
IntInput,
Output,
SecretStrInput,
StrInput,
)
from langflow.io import DataInput, IntInput, MultilineInput, Output, SecretStrInput, StrInput
from langflow.schema import Data


Expand All @@ -27,7 +21,7 @@ class FirecrawlCrawlApi(Component):
password=True,
info="The API key to use Firecrawl API.",
),
StrInput(
MultilineInput(
name="url",
display_name="URL",
required=True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
from langflow.io import (
DataInput,
IntInput,
MultilineInput,
Output,
SecretStrInput,
StrInput,
)
from langflow.schema import Data

Expand All @@ -25,7 +25,7 @@ class FirecrawlScrapeApi(Component):
password=True,
info="The API key to use Firecrawl API.",
),
StrInput(
MultilineInput(
name="url",
display_name="URL",
required=True,
Expand Down

0 comments on commit 8208310

Please sign in to comment.