removed unused function
This commit is contained in:
@@ -414,21 +414,3 @@ async def get_text_from_url(url: str) -> str:
|
||||
except Exception as e:
|
||||
logger.error(f"Error processing {url}: {e}")
|
||||
|
||||
|
||||
async def _get_files_text(files: List[FileUpload]) -> str:
|
||||
"""
|
||||
Extracts and joins text from uploaded files. Runs blocking PDF parsing
|
||||
in a thread so it doesn't stall the event loop.
|
||||
|
||||
NOTE: no longer used by extract_keywords_stream_enriched(), which now
|
||||
extracts and processes each file independently so it can run a
|
||||
separate LLM call per file. Kept here in case other callers still rely
|
||||
on a single combined text blob.
|
||||
"""
|
||||
parts = []
|
||||
for f in files:
|
||||
text = await asyncio.to_thread(
|
||||
extract_text_from_upload, f.filename, f.content_base64, f.mime_type
|
||||
)
|
||||
parts.append(text)
|
||||
return "\n\n---\n\n".join(parts)
|
||||
Reference in New Issue
Block a user