From 7e4fcb0826c0d3363ecbae043badb36014ac6c13 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 2 Dec 2026 22:19:18 +0100 Subject: [PATCH] fix: model answers in channels fail with "Error: name 'copy' is not defined" (#35545) Every model answer in a channel failed right away with "Error: name 'copy' is not defined", so a mentioned model never replied and automations that post into a channel ended each run with that error. A recent cleanup removed an import that channel replies still relied on. The import is restored, so model answers and automation runs in channels work again. Fixes #35543 --- backend/open_webui/socket/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/open_webui/socket/main.py b/backend/open_webui/socket/main.py index 28a5f72ce2..15dca5cca7 100644 --- a/backend/open_webui/socket/main.py +++ b/backend/open_webui/socket/main.py @@ -1,6 +1,7 @@ from __future__ import annotations import asyncio +import copy import logging import random import sys