mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-09 07:18:29 -05:00
chore: bump
This commit is contained in:
@@ -859,9 +859,7 @@ def transcription_handler(request, file_path, metadata, user=None):
|
||||
res = r.json()
|
||||
# Azure returns {"code": "...", "message": "...", "innerError": {...}}
|
||||
if "code" in res and "message" in res:
|
||||
azure_code = res.get("innerError", {}).get(
|
||||
"code", res["code"]
|
||||
)
|
||||
azure_code = res.get("innerError", {}).get("code", res["code"])
|
||||
user_facing_codes = {
|
||||
"EmptyAudioFile",
|
||||
"AudioLengthLimitExceeded",
|
||||
|
||||
@@ -588,7 +588,9 @@ def sanitize_metadata(metadata: dict) -> dict:
|
||||
if not callable(v) and _is_serializable(v)
|
||||
}
|
||||
if isinstance(obj, list):
|
||||
return [_sanitize(v) for v in obj if not callable(v) and _is_serializable(v)]
|
||||
return [
|
||||
_sanitize(v) for v in obj if not callable(v) and _is_serializable(v)
|
||||
]
|
||||
if callable(obj):
|
||||
return None
|
||||
# Last resort: try to see if it's serializable
|
||||
|
||||
Reference in New Issue
Block a user