From 5fd26b75492bc51094c0da78161f2388ffdc0efe Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 29 Jun 2026 09:03:11 +0200 Subject: [PATCH] docs: note pydub/audioop Python 3.13 constraint at the import (#25785) pydub imports the stdlib `audioop`, removed in Python 3.13, so audio preprocessing would break there. requires-python is already capped at < 3.13; this one-line pointer flags what to handle (audioop-lts, or drop pydub) before raising that cap. --- backend/open_webui/routers/audio.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/open_webui/routers/audio.py b/backend/open_webui/routers/audio.py index 9a439d8c91..09371729ff 100644 --- a/backend/open_webui/routers/audio.py +++ b/backend/open_webui/routers/audio.py @@ -28,6 +28,8 @@ from fastapi import ( ) from fastapi.responses import FileResponse from pydantic import BaseModel + +# pydub needs stdlib audioop (gone in 3.13); keep requires-python capped < 3.13 from pydub import AudioSegment from pydub.silence import split_on_silence from pydub.utils import mediainfo