This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-25 15:47:55 -04:00
1 parent d198d950c6
commit 140d2cf4b5
2 files changed
+2 -5

No files matched your search

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