This commit is contained in:
Timothy Jaeryang Baek
2026-08-25 15:47:55 -04:00
parent d198d950c6
commit 140d2cf4b5
2 changed files with 2 additions and 5 deletions
@@ -9,8 +9,6 @@ from open_webui.utils.headers import include_user_info_headers
log = logging.getLogger(__name__)
DEFAULT_MICROSOFT_WEB_IQ_API_BASE_URL = 'https://api.microsoft.ai/v3'
def search_microsoft_web_iq(
api_base_url: str,
@@ -22,7 +20,7 @@ def search_microsoft_web_iq(
user=None,
) -> list[SearchResult]:
try:
api_base_url = (api_base_url or DEFAULT_MICROSOFT_WEB_IQ_API_BASE_URL).rstrip('/')
api_base_url = api_base_url.rstrip('/')
headers = {
'host': urlparse(api_base_url).netloc or 'api.microsoft.ai',
'x-apikey': api_key,