mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 19:36:53 +08:00
Co-authored-by: Shunsuke Mabuchi <mabuchs@amazon.co.jp>
This commit is contained in:
@@ -20,7 +20,7 @@ class SlackWebhookTool(BuiltinTool):
|
|||||||
|
|
||||||
webhook_url = tool_parameters.get('webhook_url', '')
|
webhook_url = tool_parameters.get('webhook_url', '')
|
||||||
|
|
||||||
if not webhook_url.startswith('https://hooks.slack.com/services/'):
|
if not webhook_url.startswith('https://hooks.slack.com/'):
|
||||||
return self.create_text_message(
|
return self.create_text_message(
|
||||||
f'Invalid parameter webhook_url ${webhook_url}, not a valid Slack webhook URL')
|
f'Invalid parameter webhook_url ${webhook_url}, not a valid Slack webhook URL')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user