2424from scrapegraph_py .config import API_BASE_URL , DEFAULT_HEADERS
2525from scrapegraph_py .exceptions import APIError
2626from scrapegraph_py .logger import sgai_logger as logger
27- from scrapegraph_py .models .shared import FetchConfig , LlmConfig
27+ from scrapegraph_py .models .shared import FetchConfig
2828from scrapegraph_py .utils .helpers import handle_sync_response , validate_api_key
2929from scrapegraph_py .utils .request_builders import (
3030 build_crawl_payload ,
@@ -136,9 +136,7 @@ def create(
136136 url : str ,
137137 prompt : Optional [str ],
138138 interval : str ,
139- output_schema : Optional [Dict [str , Any ]] = None ,
140139 fetch_config : Optional [FetchConfig ] = None ,
141- llm_config : Optional [LlmConfig ] = None ,
142140 schema : Optional [Any ] = None ,
143141 formats : Optional [List [Dict [str , Any ]]] = None ,
144142 webhook_url : Optional [str ] = None ,
@@ -150,9 +148,7 @@ def create(
150148 url: URL to monitor
151149 prompt: Legacy prompt for JSON extraction monitors
152150 interval: Cron expression (5 fields)
153- output_schema: Legacy alias for schema
154151 fetch_config: Fetch configuration options
155- llm_config: LLM configuration options for JSON formats
156152 """
157153 logger .info (f"Creating monitor '{ name } ' for { url } " )
158154 return self ._client ._make_request (
@@ -163,9 +159,7 @@ def create(
163159 url = url ,
164160 prompt = prompt ,
165161 interval = interval ,
166- output_schema = output_schema ,
167162 fetch_config = fetch_config ,
168- llm_config = llm_config ,
169163 schema = schema ,
170164 formats = formats ,
171165 webhook_url = webhook_url ,
@@ -381,9 +375,7 @@ def extract(
381375 self ,
382376 url : Optional [str ],
383377 prompt : str ,
384- output_schema : Optional [Any ] = None ,
385378 fetch_config : Optional [FetchConfig ] = None ,
386- llm_config : Optional [LlmConfig ] = None ,
387379 * ,
388380 schema : Optional [Any ] = None ,
389381 mode : str = "normal" ,
@@ -396,9 +388,7 @@ def extract(
396388 Args:
397389 url: URL to extract data from
398390 prompt: Natural language prompt describing what to extract
399- output_schema: Legacy alias for schema
400391 fetch_config: Fetch configuration options
401- llm_config: Deprecated and ignored by the SGAI v2 extract route
402392 """
403393 logger .info (f"Extracting from { url } " )
404394 return self ._make_request (
@@ -407,9 +397,7 @@ def extract(
407397 json = build_extract_payload (
408398 url = url ,
409399 prompt = prompt ,
410- output_schema = output_schema ,
411400 fetch_config = fetch_config ,
412- llm_config = llm_config ,
413401 schema = schema ,
414402 mode = mode ,
415403 content_type = content_type ,
@@ -426,9 +414,7 @@ def search(
426414 self ,
427415 query : str ,
428416 num_results : int = 5 ,
429- output_schema : Optional [Any ] = None ,
430417 location_geo_code : Optional [str ] = None ,
431- llm_config : Optional [LlmConfig ] = None ,
432418 * ,
433419 schema : Optional [Any ] = None ,
434420 prompt : Optional [str ] = None ,
@@ -442,9 +428,7 @@ def search(
442428 Args:
443429 query: The search query
444430 num_results: Number of results (1-20, default 5)
445- output_schema: Legacy alias for schema
446431 location_geo_code: Geo code for geo-targeted results
447- llm_config: Deprecated and ignored by the SGAI v2 search route
448432 """
449433 logger .info (f"Searching: { query } " )
450434 return self ._make_request (
@@ -453,9 +437,7 @@ def search(
453437 json = build_search_payload (
454438 query = query ,
455439 num_results = num_results ,
456- output_schema = output_schema ,
457440 location_geo_code = location_geo_code ,
458- llm_config = llm_config ,
459441 schema = schema ,
460442 prompt = prompt ,
461443 format = format ,
0 commit comments