This commit is contained in:
Tim Baek
2026-03-24 14:54:29 -05:00
parent f949d17db1
commit c24a4da17d
3 changed files with 10 additions and 7 deletions
+2 -2
View File
@@ -3098,7 +3098,7 @@ async def non_streaming_chat_response_handler(response, ctx):
)
# Send a webhook notification if the user is not active
if not Users.is_user_active(user.id):
if request.app.state.config.ENABLE_USER_WEBHOOKS and not Users.is_user_active(user.id):
webhook_url = Users.get_user_webhook_url_by_id(user.id)
if webhook_url:
await post_webhook(
@@ -4587,7 +4587,7 @@ async def streaming_chat_response_handler(response, ctx):
)
# Send a webhook notification if the user is not active
if not Users.is_user_active(user.id):
if request.app.state.config.ENABLE_USER_WEBHOOKS and not Users.is_user_active(user.id):
webhook_url = Users.get_user_webhook_url_by_id(user.id)
if webhook_url:
await post_webhook(