Files
open-webui/backend/open_webui/utils
Classic298 3348f68778 fix: keep attachment-only messages intact when skills are bound (#30045)
Sending an image or file with no typed text to a model with skills
bound replaced the (empty) message text with the list of skill names,
so the model answered with its skill catalog instead of handling the
attachment. The empty-message guard added for #24929 fired on any
empty last user text without checking for attachments.

The guard now skips the fallback when the current message carries
files, read from the user_message object the frontend sends with the
request. Attachment-only messages then go out exactly as they do on
models without skills. A bare skill selection with no attachment still
gets the fallback, so the provider 400 from #24929 stays fixed.

Request-level files were not usable as the signal: that list carries
the model's knowledge and folder files, so a bare skill selection on a
knowledge model would have gone out empty again.

Fixes #30040
2026-09-16 10:19:28 -04:00
..
2026-09-15 22:47:03 -04:00
2026-09-12 14:57:22 -04:00
2026-08-24 18:29:36 -04:00
2026-09-12 19:45:42 -04:00
2026-09-12 16:56:26 -04:00
2026-08-29 16:14:32 -04:00
2026-03-17 17:58:01 -05:00
2026-07-23 02:54:56 -04:00
2026-07-26 21:12:14 -04:00
2026-07-31 17:41:14 -04:00
2026-08-23 13:36:53 -04:00
2026-09-13 21:37:12 -04:00
2026-08-31 01:29:36 -04:00
2026-09-12 15:41:57 -04:00
2026-08-10 19:28:21 -06:00
2026-08-31 00:39:16 -04:00
2026-07-26 23:09:22 -04:00
2026-09-07 12:40:44 -04:00
2026-09-15 22:47:03 -04:00
2026-08-16 22:56:19 -07:00
2026-08-17 00:57:57 -07:00
2026-03-17 17:58:01 -05:00
2026-08-24 18:29:36 -04:00
2026-09-14 17:57:09 -04:00
2026-08-25 16:53:53 -04:00
2026-06-19 00:16:06 +02:00
2026-09-13 23:34:35 -04:00
2026-08-25 16:53:53 -04:00
2026-09-07 12:16:09 -04:00
2026-09-15 22:47:03 -04:00
2026-07-31 17:41:14 -04:00