Files
open-webui/backend/open_webui/utils
Classic298 4eefe65bd4 fix: chats fail when an MCP server from Tether is enabled (#34728)
MCP servers added in Tether have IDs with colons, and Open WebUI puts the server ID in front of every MCP tool name it offers to the model. OpenAI-compatible providers only accept letters, digits, underscores and dashes in tool names, so every chat with such a server turned on was rejected with `Invalid 'tools[0].function.name'`. The same happened for MCP servers whose admin-chosen ID has dots or spaces. Characters outside that set are now replaced with underscores, so these tools reach the model and their calls still go to the right MCP server. Names that were already valid are unchanged.

Fixes #34718
2026-11-23 19:15:19 +04:00
..
2026-11-22 20:43:18 +04:00
2026-11-19 19:13:33 +04:00
2026-11-23 18:35:34 +04:00
2026-11-22 20:43:18 +04:00
2026-11-19 19:13:33 +04:00
2026-11-13 17:36:00 +09:00
2026-11-16 21:10:30 +09:00
2026-11-22 17:13:34 +04:00
2026-11-09 08:05:51 +09:00
2026-11-22 20:47:46 +04:00
2026-11-05 11:41:25 +09:00
2026-11-22 17:13:34 +04:00
2026-11-16 21:10:30 +09:00
2026-10-12 17:29:04 +04:00
2026-07-23 02:54:56 -04:00
2026-11-02 09:52:30 +09:00
2026-11-22 20:33:28 +04:00
2026-07-31 17:41:14 -04:00
2026-11-23 16:21:00 +04:00
2026-11-13 17:36:00 +09:00
2026-11-02 08:48:51 +09:00
2026-11-23 16:21:00 +04:00
2026-10-25 08:24:14 +09:00
2026-11-17 22:30:21 +09:00
2026-11-23 03:29:58 +04:00
2026-07-26 23:09:22 -04:00
2026-11-05 16:54:50 +09:00
2026-11-17 22:01:25 +09:00
2026-11-02 08:48:51 +09:00
2026-11-22 02:10:33 +04:00
2026-11-02 08:48:51 +09:00
2026-11-22 20:33:28 +04:00
2026-11-22 16:26:59 +04:00
2026-03-17 17:58:01 -05:00
2026-08-24 18:29:36 -04:00
2026-11-02 12:45:15 +09:00
2026-10-16 14:31:39 +04:00
2026-11-22 17:13:34 +04:00
2026-11-22 17:13:34 +04:00
2026-11-22 16:26:59 +04:00
2026-11-22 17:13:34 +04:00
2026-11-22 17:13:34 +04:00
2026-11-22 17:13:34 +04:00
2026-11-22 17:13:34 +04:00
2026-11-20 21:51:19 +04:00
2026-11-02 08:48:51 +09:00
2026-10-11 15:55:57 +04:00
2026-11-02 08:48:51 +09:00