mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-25 05:54:29 +00:00
Keep support for old response shape
This commit is contained in:
parent
634c8afec3
commit
b7be12be15
1 changed files with 4 additions and 0 deletions
|
|
@ -32,6 +32,10 @@ def search_firecrawl(
|
|||
response.raise_for_status()
|
||||
data = response.json().get('data', [])
|
||||
|
||||
# Support old response shape.
|
||||
if type(data) is dict:
|
||||
data = data.get('web', [])
|
||||
|
||||
results = [
|
||||
SearchResult(
|
||||
link=r.get('url', ''),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue