Skip to content

Commit f91c3fa

Browse files
committed
feat: allow setting base_url for LLM extraction strategy in CLI
1 parent fd02dc7 commit f91c3fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crawl4ai/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ def crawl_cmd(url: str, browser_config: str, crawler_config: str, filter_config:
644644
raise click.ClickException("LLM provider and API token are required for LLM extraction")
645645

646646
crawler_cfg.extraction_strategy = LLMExtractionStrategy(
647-
llm_config=LLMConfig(provider=extract_conf["provider"], api_token=extract_conf["api_token"]),
647+
llm_config=LLMConfig(provider=extract_conf["provider"], api_token=extract_conf["api_token"], base_url=extract_conf.get("base_url")),
648648
instruction=extract_conf["instruction"],
649649
schema=schema_data,
650650
**extract_conf.get("params", {})

0 commit comments

Comments
 (0)