Refa: link connector to KB. (#10991)

### What problem does this PR solve?

#10953

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Kevin Hu
2025-11-04 20:13:52 +08:00
committed by GitHub
parent db9fa3042b
commit 4bbbf92331
5 changed files with 78 additions and 12 deletions

View File

@ -30,7 +30,10 @@ async def image2id(d: dict, storage_put_func: partial, objname:str, bucket:str="
from io import BytesIO
import trio
from rag.svr.task_executor import minio_limiter
if not d.get("image"):
if "image" not in d:
return
if not d["image"]:
del d["image"]
return
with BytesIO() as output_buffer: