Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix(tools): suppress RuntimeWarnings in podcast audio generator (#10182)
-LAN-86739bea8b29
diff --git a/api/core/tools/provider/builtin/podcast_generator/tools/podcast_audio_generator.py b/api/core/tools/provider/builtin/podcast_generator/tools/podcast_audio_generator.pyindex 2300b69e49f..476e2d01e1d 100644--- a/api/core/tools/provider/builtin/podcast_generator/tools/podcast_audio_generator.py+++ b/api/core/tools/provider/builtin/podcast_generator/tools/podcast_audio_generator.py@@ -1,8 +1,8 @@import concurrent.futuresimport ioimport random+import warningsfrom typing import Any, Literal, Optional, Union-from warnings import catch_warningsimport openai@@ -10,7 +10,8 @@ from core.tools.entities.tool_entities import ToolInvokeMessagefrom core.tools.errors import ToolParameterValidationError, ToolProviderCredentialValidationErrorfrom core.tools.tool.builtin_tool import BuiltinTool-with catch_warnings(action="ignore", category=RuntimeWarning):+with warnings.catch_warnings():+ warnings.simplefilter("ignore")from pydub import AudioSegment