Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(python-sdk): Make API key optional for self-hosted instances #990

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RutamBhagat
Copy link
Contributor

@RutamBhagat RutamBhagat commented Dec 17, 2024

Fixes: #961

Description:
Make API key validation conditional based on API URL. API key is now only required when using cloud service (api.firecrawl.dev). This allows easier self-hosting by removing API key requirement for local/self-hosted instances.

Changes:

  • Modified API key validation logic in FirecrawlApp
  • Updated tests to handle both cloud and self-hosted scenarios
  • Added missing test dependencies

@@ -12,7 +12,9 @@ dependencies = [
"requests",
"python-dotenv",
"websockets",
"nest-asyncio"
"nest-asyncio",
"pytest>=8.3.4",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might not need pytest here, @rafaelmmiller lmk.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed pytest from pyproject.toml but while testing i get this error, thats why I added it

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Not enforce API Key to be provided in the sdks when self hosting
2 participants