spiderforce4ai 2.5.5__tar.gz → 2.5.6__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: spiderforce4ai
3
- Version: 2.5.5
3
+ Version: 2.5.6
4
4
  Summary: Python wrapper for SpiderForce4AI HTML-to-Markdown conversion service with LLM post-processing
5
5
  Home-page: https://petertam.pro
6
6
  Author: Piotr Tamulewicz
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "spiderforce4ai"
7
- version = "2.5.5"
7
+ version = "2.5.6"
8
8
  description = "Python wrapper for SpiderForce4AI HTML-to-Markdown conversion service with LLM post-processing"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -7,7 +7,7 @@ with open("README.md", encoding="utf-8") as f:
7
7
 
8
8
  setup(
9
9
  name="spiderforce4ai",
10
- version="2.5.5",
10
+ version="2.5.6",
11
11
  author="Piotr Tamulewicz",
12
12
  author_email="pt@petertam.pro",
13
13
  description="Python wrapper for SpiderForce4AI HTML-to-Markdown conversion service with LLM post-processing",
@@ -750,7 +750,10 @@ class SpiderForce4AI:
750
750
  for result in successful_results:
751
751
  try:
752
752
  # Process content synchronously since it's not an async method
753
- result.extraction_result = agent.process_content(result.url, result.markdown)
753
+ extraction_result = agent.process_content(result.url, result.markdown)
754
+ if extraction_result:
755
+ result.extraction_result = extraction_result
756
+ logger.info(f"Successfully processed and transformed content for {result.url}")
754
757
  progress.update(llm_task, advance=1)
755
758
  except Exception as e:
756
759
  console.print(f"[red]Error in post-extraction processing for {result.url}: {str(e)}[/red]")
@@ -307,8 +307,10 @@ class PostExtractionAgent:
307
307
  result[field] = None
308
308
 
309
309
  logger.info(f"Executing custom transformer function for {url}")
310
- result = self.config.custom_transform_function(result)
310
+ transformed_result = self.config.custom_transform_function(result)
311
311
  logger.info(f"Successfully applied custom transformation for {url}")
312
+ logger.info(f"Webhook response sent for {url}")
313
+ return transformed_result # Return the transformed result
312
314
  except Exception as e:
313
315
  error_msg = f"Warning: Issue in custom transform for {url}: {str(e)}"
314
316
  logger.warning(error_msg)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: spiderforce4ai
3
- Version: 2.5.5
3
+ Version: 2.5.6
4
4
  Summary: Python wrapper for SpiderForce4AI HTML-to-Markdown conversion service with LLM post-processing
5
5
  Home-page: https://petertam.pro
6
6
  Author: Piotr Tamulewicz
File without changes
File without changes