-
Notifications
You must be signed in to change notification settings - Fork 284
feat: add Firecrawl API key to setup wizard #145
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -407,19 +407,21 @@ async def prompt_api_keys() -> dict[str, str]: | |
| """Prompt user for optional API keys. | ||
|
|
||
| Returns: | ||
| dict with keys: perplexity, nia, braintrust | ||
| dict with keys: perplexity, nia, braintrust, firecrawl | ||
| """ | ||
| console.print("\n[bold]API Keys (optional)[/bold]") | ||
| console.print("Press Enter to skip any key you don't have.\n") | ||
|
|
||
| perplexity = Prompt.ask("Perplexity API key (web search)", default="") | ||
| nia = Prompt.ask("Nia API key (documentation search)", default="") | ||
| braintrust = Prompt.ask("Braintrust API key (observability)", default="") | ||
| firecrawl = Prompt.ask("Firecrawl API key (web scraping)", default="") | ||
|
|
||
| return { | ||
| "perplexity": perplexity, | ||
| "nia": nia, | ||
| "braintrust": braintrust, | ||
| "firecrawl": firecrawl, | ||
| } | ||
|
|
||
|
|
||
|
|
@@ -500,6 +502,8 @@ def generate_env_file(config: dict[str, Any], env_path: Path) -> None: | |
| lines.append(f"NIA_API_KEY={api_keys['nia']}") | ||
| if api_keys.get("braintrust"): | ||
| lines.append(f"BRAINTRUST_API_KEY={api_keys['braintrust']}") | ||
| if api_keys.get("firecrawl"): | ||
| lines.append(f"FIRECRAWL_API_KEY={api_keys['firecrawl']}") | ||
| lines.append("") | ||
|
|
||
| # Write file | ||
|
Comment on lines
502
to
509
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The setup wizard writes Suggested FixModify the Prompt for AI Agent |
||
|
|
@@ -616,7 +620,7 @@ async def run_setup_wizard() -> None: | |
| if Confirm.ask("Configure API keys?", default=False): | ||
| api_keys = await prompt_api_keys() | ||
| else: | ||
| api_keys = {"perplexity": "", "nia": "", "braintrust": ""} | ||
| api_keys = {"perplexity": "", "nia": "", "braintrust": "", "firecrawl": ""} | ||
|
|
||
| # Step 5: Generate .env | ||
| console.print("\n[bold]Step 5/13: Generating configuration...[/bold]") | ||
|
|
||
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.