mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
disable file sync to sandbox, LLM handles data extraction itself
This commit is contained in:
parent
5ea2732bf2
commit
facfb1f7e7
1 changed files with 2 additions and 3 deletions
|
|
@ -29,7 +29,6 @@ from app.agents.new_chat.sandbox import (
|
|||
_evict_sandbox_cache,
|
||||
get_or_create_sandbox,
|
||||
is_sandbox_enabled,
|
||||
sync_files_to_sandbox,
|
||||
)
|
||||
from app.db import Chunk, Document, DocumentType, Folder, shielded_async_session
|
||||
from app.indexing_pipeline.document_chunker import chunk_text
|
||||
|
|
@ -589,8 +588,8 @@ class SurfSenseFilesystemMiddleware(FilesystemMiddleware):
|
|||
timeout: int | None,
|
||||
) -> str:
|
||||
sandbox, is_new = await get_or_create_sandbox(self._thread_id)
|
||||
files = runtime.state.get("files") or {}
|
||||
await sync_files_to_sandbox(self._thread_id, files, sandbox, is_new)
|
||||
# files = runtime.state.get("files") or {}
|
||||
# await sync_files_to_sandbox(self._thread_id, files, sandbox, is_new)
|
||||
result = await sandbox.aexecute(command, timeout=timeout)
|
||||
output = (result.output or "").strip()
|
||||
if not output and result.exit_code == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue