spiderforce4ai 2.6.4__tar.gz → 2.6.5__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {spiderforce4ai-2.6.4 → spiderforce4ai-2.6.5}/PKG-INFO +1 -1
- {spiderforce4ai-2.6.4 → spiderforce4ai-2.6.5}/pyproject.toml +1 -1
- {spiderforce4ai-2.6.4 → spiderforce4ai-2.6.5}/setup.py +1 -1
- {spiderforce4ai-2.6.4 → spiderforce4ai-2.6.5}/spiderforce4ai/post_extraction_agent.py +13 -2
- {spiderforce4ai-2.6.4 → spiderforce4ai-2.6.5}/spiderforce4ai.egg-info/PKG-INFO +1 -1
- {spiderforce4ai-2.6.4 → spiderforce4ai-2.6.5}/README.md +0 -0
- {spiderforce4ai-2.6.4 → spiderforce4ai-2.6.5}/setup.cfg +0 -0
- {spiderforce4ai-2.6.4 → spiderforce4ai-2.6.5}/spiderforce4ai/__init__.py +0 -0
- {spiderforce4ai-2.6.4 → spiderforce4ai-2.6.5}/spiderforce4ai.egg-info/SOURCES.txt +0 -0
- {spiderforce4ai-2.6.4 → spiderforce4ai-2.6.5}/spiderforce4ai.egg-info/dependency_links.txt +0 -0
- {spiderforce4ai-2.6.4 → spiderforce4ai-2.6.5}/spiderforce4ai.egg-info/entry_points.txt +0 -0
- {spiderforce4ai-2.6.4 → spiderforce4ai-2.6.5}/spiderforce4ai.egg-info/not-zip-safe +0 -0
- {spiderforce4ai-2.6.4 → spiderforce4ai-2.6.5}/spiderforce4ai.egg-info/requires.txt +0 -0
- {spiderforce4ai-2.6.4 → spiderforce4ai-2.6.5}/spiderforce4ai.egg-info/top_level.txt +0 -0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "spiderforce4ai"
|
7
|
-
version = "2.6.
|
7
|
+
version = "2.6.5"
|
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.6.
|
10
|
+
version="2.6.5",
|
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",
|
@@ -341,15 +341,26 @@ class PostExtractionAgent:
|
|
341
341
|
# Add URL to result before transformation
|
342
342
|
result['url'] = url
|
343
343
|
|
344
|
-
logger.info(f"Executing
|
344
|
+
logger.info(f"Executing transformer function for {url}")
|
345
345
|
transformed_result = self.config.custom_transform_function(result)
|
346
346
|
logger.info(f"Successfully applied custom transformation for {url}")
|
347
|
+
|
348
|
+
# Save the transformed result to combined output
|
349
|
+
if self.config.output_file:
|
350
|
+
self._save_result_sync(url, transformed_result)
|
351
|
+
logger.info(f"Saved transformed result to combined output for {url}")
|
352
|
+
|
347
353
|
logger.info(f"Webhook response sent for {url}")
|
348
|
-
return transformed_result
|
354
|
+
return transformed_result
|
349
355
|
except Exception as e:
|
350
356
|
error_msg = f"Warning: Issue in custom transform for {url}: {str(e)}"
|
351
357
|
logger.warning(error_msg)
|
352
358
|
console.print(f"[yellow]{error_msg}[/yellow]")
|
359
|
+
|
360
|
+
# Save original result if transformation fails
|
361
|
+
if self.config.output_file:
|
362
|
+
self._save_result_sync(url, result)
|
363
|
+
logger.info(f"Saved original result to combined output for {url}")
|
353
364
|
|
354
365
|
# Save result synchronously
|
355
366
|
try:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|