refactor: replace StrInput with MultilineInput for URL fields (FirecrawlAPI) (#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>
This commit is contained in:
parent
414797f3f8
commit
8208310fa6
3 changed files with 7 additions and 10 deletions
3
.github/changes-filter.yaml
vendored
3
.github/changes-filter.yaml
vendored
|
|
@ -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/**"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ from langflow.custom import Component
|
|||
from langflow.io import (
|
||||
DataInput,
|
||||
IntInput,
|
||||
MultilineInput,
|
||||
Output,
|
||||
SecretStrInput,
|
||||
StrInput,
|
||||
)
|
||||
from langflow.schema import Data
|
||||
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue