Skip to content

Commit

Permalink
Fix web search api status
Browse files Browse the repository at this point in the history
  • Loading branch information
morganmcg1 committed Jan 29, 2025
1 parent 4ce60ae commit 311d9d2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/wandbot/retriever/web_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,13 @@ def run_web_search(query: str, top_k: int, avoid=False) -> WebSearchResults:
return WebSearchResults(
api_status=APIStatus(
component="web_search",
success=True
success=False,
error_info=ErrorInfo(
component="web_search",
has_error=False,
error_message="Web search is disabled",
error_type="WebSearchDisabled"
)
),
web_contexts=[],
)
Expand Down

0 comments on commit 311d9d2

Please sign in to comment.