This commit is contained in:
Timothy Jaeryang Baek
2026-08-24 17:56:11 -04:00
parent 043cf330d2
commit 98ee2bdfd3
3 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ from __future__ import annotations
import logging
import requests
from open_webui.env import TAVILY_API_BASE_URL
from open_webui.retrieval.web.main import SearchResult, get_filtered_results
log = logging.getLogger(__name__)
@@ -25,7 +26,7 @@ def search_tavily(
Returns:
A list of SearchResult objects.
"""
url = 'https://api.tavily.com/search'
url = f'{TAVILY_API_BASE_URL}/search'
headers = {
'Content-Type': 'application/json',
'Authorization': f'Bearer {api_key}',