mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-09-17 15:51:55 +00:00
feat(API): Ingest plain text (#1417)
* Add ingest/text route to ingest plain text * Add new ingest text test and adapt ingest/file ones * Include new API in docs * Remove duplicated logic
This commit is contained in:
@@ -48,7 +48,7 @@ class LocalIngestWorker:
|
||||
try:
|
||||
if changed_path.exists():
|
||||
logger.info(f"Started ingesting file={changed_path}")
|
||||
self.ingest_service.ingest(changed_path.name, changed_path)
|
||||
self.ingest_service.ingest_file(changed_path.name, changed_path)
|
||||
logger.info(f"Completed ingesting file={changed_path}")
|
||||
except Exception:
|
||||
logger.exception(
|
||||
|
Reference in New Issue
Block a user