Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/legacy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1559,7 +1559,7 @@ async def summarize_webpage(model: BaseChatModel, webpage_content: str) -> str:
{"role": "system", "content": SUMMARIZATION_PROMPT.format(webpage_content=webpage_content)},
{"role": "user", "content": user_input_content},
])
except:
except Exception:
# fall back on the raw content
return webpage_content

Expand Down Expand Up @@ -1632,4 +1632,4 @@ def _load():
return config

config = await asyncio.to_thread(_load)
return config
return config