Keep support for old response shape

This commit is contained in:
Viktor Isaev 2026-04-23 08:49:45 +04:00
parent 634c8afec3
commit b7be12be15

View file

@ -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', ''),