diff --git a/backend/open_webui/routers/audio/__init__.py b/backend/open_webui/routers/audio/__init__.py index f3d84f0670..23ff27dcb2 100644 --- a/backend/open_webui/routers/audio/__init__.py +++ b/backend/open_webui/routers/audio/__init__.py @@ -1343,7 +1343,7 @@ async def _transcribe_mistral(request, file_path, filename, metadata, file_dir, async def transcribe(request: Request, file_path: str, metadata: Optional[dict] = None, user=None): - log.info('transcribe: %s %s', file_path, metadata) + log.debug('transcribe: %s %s', file_path, metadata) if BYPASS_PYDUB_PREPROCESSING: log.info('Bypassing pydub preprocessing (BYPASS_PYDUB_PREPROCESSING=true)') @@ -1365,7 +1365,7 @@ async def transcribe(request: Request, file_path: str, metadata: Optional[dict] # Always produce a list of chunk paths (could be one entry if small) try: chunk_paths = await asyncio.to_thread(split_audio, file_path, MAX_FILE_SIZE) - print(f'Chunk paths: {chunk_paths}') + log.debug('Chunk paths: %s', chunk_paths) except Exception as e: log.exception(e) raise HTTPException( @@ -1470,7 +1470,7 @@ async def transcription( status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.ACCESS_PROHIBITED, ) - log.info('file.content_type: %s', file.content_type) + log.debug('file.content_type: %s', file.content_type) stt_supported_content_types = await Config.get('audio.stt.supported_content_types', []) if not strict_match_mime_type(stt_supported_content_types, file.content_type): diff --git a/backend/open_webui/routers/files.py b/backend/open_webui/routers/files.py index 30e5fde4d4..e9ad9b9958 100644 --- a/backend/open_webui/routers/files.py +++ b/backend/open_webui/routers/files.py @@ -347,7 +347,7 @@ async def upload_file_handler( background_tasks: Optional[BackgroundTasks] = None, db: Optional[AsyncSession] = None, ): - log.info('file.content_type: %s %s', file.content_type, process) + log.debug('file.content_type: %s %s', file.content_type, process) if isinstance(metadata, str): try: @@ -931,7 +931,7 @@ async def get_html_file_content_by_id( # Check if the file already exists in the cache if file_path.is_file(): - log.info('file_path: %s', file_path) + log.debug('file_path: %s', file_path) return FileResponse(file_path) else: raise HTTPException( diff --git a/backend/open_webui/routers/ollama.py b/backend/open_webui/routers/ollama.py index 1f71450986..ae34ff6cef 100644 --- a/backend/open_webui/routers/ollama.py +++ b/backend/open_webui/routers/ollama.py @@ -379,7 +379,7 @@ async def get_ollama_connection_config() -> tuple[list, dict]: ) async def get_all_models(request: Request, user: UserModel | None = None): """Aggregate model tags from every enabled Ollama backend.""" - log.info('get_all_models()') + log.debug('get_all_models()') if not await Config.get('ollama.enable'): models_dict: dict = {'models': []} diff --git a/backend/open_webui/routers/openai.py b/backend/open_webui/routers/openai.py index b181a8b39a..aaa9f88db0 100644 --- a/backend/open_webui/routers/openai.py +++ b/backend/open_webui/routers/openai.py @@ -760,7 +760,7 @@ async def get_filtered_models(models, user, db=None): key_builder=lambda _func, request, user=None: f'openai_all_models_{user.id}' if user else 'openai_all_models', ) async def get_all_models(request: Request, user: UserModel) -> dict[str, list]: - log.info('get_all_models()') + log.debug('get_all_models()') enable_openai_api, api_base_urls, _, api_configs = await get_openai_runtime_config() if not enable_openai_api: