open-webui/backend/open_webui/retrieval
Classic298 e623081b2b
fix: handle list-shape data in Firecrawl /search response (#24712)
Firecrawl /search returns either `{"data": [...]}` (flat list — v1, and
what frost19k reported on #23966) or `{"data": {"web": [...]}}` (v2,
current production). The parser only handled the dict shape:

    data = response.get('data') or {}
    results = data.get('web') or []

On a list-shape response, `data.get('web')` raised AttributeError,
caught by the function's outer try/except, and `search_firecrawl`
silently returned []. Web search worked against v2 endpoints but is one
upstream-format-change away from failing closed again. Accept either.
2026-06-01 12:07:31 -07:00
..
loaders refac 2026-06-01 11:08:58 -07:00
models refac: modernize type annotations (PEP 604 / PEP 585) 2026-05-12 17:10:15 +09:00
vector fix: reject collection names with unsafe characters in RAG ACL (#24982) 2026-06-01 11:48:43 -07:00
web fix: handle list-shape data in Firecrawl /search response (#24712) 2026-06-01 12:07:31 -07:00
utils.py refac 2026-06-01 11:58:16 -07:00