mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 03:03:27 -06:00
[GH-ISSUE #13592] issue: 🔴 Generate Title button throws internal error for non-admin users #16964
Reference in New Issue
Block a user
Originally created by @devgauchocode on GitHub (May 6, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13592
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.6 (main tag pulled ~30 hours ago)
Ollama Version (if applicable)
No response
Operating System
Ubuntu Server 22.04.4
Browser (if applicable)
Chrome 124.0.6367.119 (64-bit)
Confirmation
README.md.Expected Behavior
Non-admin users should be able to use the Generate Title button when renaming a chat, just like admin users.
Actual Behavior
When a non-admin user clicks the Generate Title button while renaming a chat, the following error appears:
"An internal error has occurred."
Nothing happens, and the title is not generated. The feature works correctly when logged in as an admin.
Steps to Reproduce
Pull the latest image: ghcr.io/open-webui/open-webui:main
Start a container using the image above.
Enable or disable the Title Generation toggle from the user settings (tested both states).
Log in as a non-admin user.
Hover over or attempt to rename an existing chat.
Click the Generate Title button.
Observe the error message:
"An internal error has occurred."
Logs & Screenshots
Logs:
open-webui-centum | 2025-05-06 20:13:24.381 | ERROR | open_webui.routers.tasks:generate_title:237 - Exception occurred - {}
open-webui-centum | Traceback (most recent call last):
open-webui-centum |
open-webui-centum | File "/usr/local/bin/uvicorn", line 10, in
open-webui-centum | sys.exit(main())
open-webui-centum | │ │ └
open-webui-centum | │ └
open-webui-centum | └ <module 'sys' (built-in)>
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1161, in call
open-webui-centum | return self.main(args, **kwargs)
open-webui-centum | │ │ │ └ {}
open-webui-centum | │ │ └ ()
open-webui-centum | │ └ <function BaseCommand.main at 0x7f1870b7de40>
open-webui-centum | └
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1082, in main
open-webui-centum | rv = self.invoke(ctx)
open-webui-centum | │ │ └ <click.core.Context object at 0x7f1871840490>
open-webui-centum | │ └ <function Command.invoke at 0x7f1870b7ea20>
open-webui-centum | └
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
open-webui-centum | return ctx.invoke(self.callback, **ctx.params)
open-webui-centum | │ │ │ │ │ └ {'host': '0.0.0.0', 'port': 8080, 'forwarded_allow_ips': '', 'workers': 1, 'app': 'open_webui.main:app', 'uds': None, 'fd': ...
open-webui-centum | │ │ │ │ └ <click.core.Context object at 0x7f1871840490>
open-webui-centum | │ │ │ └ <function main at 0x7f1870759580>
open-webui-centum | │ │ └
open-webui-centum | │ └ <function Context.invoke at 0x7f1870b7d3a0>
open-webui-centum | └ <click.core.Context object at 0x7f1871840490>
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 788, in invoke
open-webui-centum | return __callback(args, **kwargs)
open-webui-centum | │ └ {'host': '0.0.0.0', 'port': 8080, 'forwarded_allow_ips': '', 'workers': 1, 'app': 'open_webui.main:app', 'uds': None, 'fd': ...
open-webui-centum | └ ()
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 412, in main
open-webui-centum | run(
open-webui-centum | └ <function run at 0x7f1870b83ec0>
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run
open-webui-centum | server.run()
open-webui-centum | │ └ <function Server.run at 0x7f18709e5300>
open-webui-centum | └ <uvicorn.server.Server object at 0x7f1870b84110>
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run
open-webui-centum | return asyncio.run(self.serve(sockets=sockets))
open-webui-centum | │ │ │ │ └ None
open-webui-centum | │ │ │ └ <function Server.serve at 0x7f18709e53a0>
open-webui-centum | │ │ └ <uvicorn.server.Server object at 0x7f1870b84110>
open-webui-centum | │ └ <function run at 0x7f1870ef0b80>
open-webui-centum | └ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/__init__.py'>
open-webui-centum | File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
open-webui-centum | return runner.run(main)
open-webui-centum | │ │ └ <coroutine object Server.serve at 0x7f18709127a0>
open-webui-centum | │ └ <function Runner.run at 0x7f1870d5c720>
open-webui-centum | └ <asyncio.runners.Runner object at 0x7f18707634d0>
open-webui-centum | File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
open-webui-centum | return self._loop.run_until_complete(task)
open-webui-centum | │ │ │ └ <Task pending name='Task-1' coro=<Server.serve() running at /usr/local/lib/python3.11/site-packages/uvicorn/server.py:70> wai...
open-webui-centum | │ │ └ <cyfunction Loop.run_until_complete at 0x7f1870799220>
open-webui-centum | │ └ <uvloop.Loop running=True closed=False debug=False>
open-webui-centum | └ <asyncio.runners.Runner object at 0x7f18707634d0>
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
open-webui-centum | await self.app(scope, receive_or_disconnect, send_no_error)
open-webui-centum | │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..send_no_error at 0x7f17fa58d120>
open-webui-centum | │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f17fa58dda0>
open-webui-centum | │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.21.0.2', 8080), 'c...
open-webui-centum | │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7f17fc14cc90>
open-webui-centum | └ <open_webui.main.RedirectMiddleware object at 0x7f17fc0c6a50>
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in call
open-webui-centum | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
open-webui-centum | │ │ │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..send_no_error at 0x7f17fa58d120>
open-webui-centum | │ │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f17fa58dda0>
open-webui-centum | │ │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.21.0.2', 8080), 'c...
open-webui-centum | │ │ │ └ <starlette.requests.Request object at 0x7f17fa4ed1d0>
open-webui-centum | │ │ └ <fastapi.routing.APIRouter object at 0x7f182edd5210>
open-webui-centum | │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7f17fc14cc90>
open-webui-centum | └ <function wrap_app_handling_exceptions at 0x7f186dc6c7c0>
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
open-webui-centum | await app(scope, receive, sender)
open-webui-centum | │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f17f95c7880>
open-webui-centum | │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f17fa58dda0>
open-webui-centum | │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.21.0.2', 8080), 'c...
open-webui-centum | └ <fastapi.routing.APIRouter object at 0x7f182edd5210>
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in call
open-webui-centum | await self.middleware_stack(scope, receive, send)
open-webui-centum | │ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f17f95c7880>
open-webui-centum | │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f17fa58dda0>
open-webui-centum | │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.21.0.2', 8080), 'c...
open-webui-centum | │ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x7f182edd5210>>
open-webui-centum | └ <fastapi.routing.APIRouter object at 0x7f182edd5210>
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
open-webui-centum | await route.handle(scope, receive, send)
open-webui-centum | │ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f17f95c7880>
open-webui-centum | │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f17fa58dda0>
open-webui-centum | │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.21.0.2', 8080), 'c...
open-webui-centum | │ └ <function Route.handle at 0x7f186dc6de40>
open-webui-centum | └ APIRoute(path='/api/v1/tasks/title/completions', name='generate_title', methods=['POST'])
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
open-webui-centum | await self.app(scope, receive, send)
open-webui-centum | │ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f17f95c7880>
open-webui-centum | │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f17fa58dda0>
open-webui-centum | │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.21.0.2', 8080), 'c...
open-webui-centum | │ └ <function request_response..app at 0x7f17fc35a700>
open-webui-centum | └ APIRoute(path='/api/v1/tasks/title/completions', name='generate_title', methods=['POST'])
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
open-webui-centum | await wrap_app_handling_exceptions(app, request)(scope, receive, send)
open-webui-centum | │ │ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f17f95c7880>
open-webui-centum | │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f17fa58dda0>
open-webui-centum | │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.21.0.2', 8080), 'c...
open-webui-centum | │ │ └ <starlette.requests.Request object at 0x7f17fa4ee790>
open-webui-centum | │ └ <function request_response..app..app at 0x7f17f95c6700>
open-webui-centum | └ <function wrap_app_handling_exceptions at 0x7f186dc6c7c0>
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/starlette/exception_handler.py", line 42, in wrapped_app
open-webui-centum | await app(scope, receive, sender)
open-webui-centum | │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f17f95c77e0>
open-webui-centum | │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f17fa58dda0>
open-webui-centum | │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.21.0.2', 8080), 'c...
open-webui-centum | └ <function request_response..app..app at 0x7f17f95c6700>
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
open-webui-centum | response = await f(request)
open-webui-centum | │ └ <starlette.requests.Request object at 0x7f17fa4ee790>
open-webui-centum | └ <function get_request_handler..app at 0x7f17fc35a5c0>
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
open-webui-centum | raw_response = await run_endpoint_function(
open-webui-centum | └ <function run_endpoint_function at 0x7f186dc6fc40>
open-webui-centum | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
open-webui-centum | return await dependant.call(**values)
open-webui-centum | │ │ └ {'user': UserModel(id='cca691c4-b5db-452b-846e-d07cb1608969', name='lveron', email='lveron@broobe.com', role='user', profile...
open-webui-centum | │ └ <function generate_title at 0x7f183240c9a0>
open-webui-centum | └ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=Body(Pydant...
open-webui-centum |
open-webui-centum | > File "/app/backend/open_webui/routers/tasks.py", line 235, in generate_title
open-webui-centum | return await generate_chat_completion(request, form_data=payload, user=user)
open-webui-centum | │ │ │ └ UserModel(id='cca691c4-b5db-452b-846e-d07cb1608969', name='lveron', email='lveron@broobe.com', role='user', profile_image_url...
open-webui-centum | │ │ └ {'model': 'n8n_pipe_alfa2', 'messages': [{'role': 'user', 'content': '### Task:\nGenerate a concise, 3-5 word title with an e...
open-webui-centum | │ └ <starlette.requests.Request object at 0x7f17fa4ee790>
open-webui-centum | └ <function generate_chat_completion at 0x7f18325274c0>
open-webui-centum |
open-webui-centum | File "/app/backend/open_webui/utils/chat.py", line 201, in generate_chat_completion
open-webui-centum | raise e
open-webui-centum |
open-webui-centum | File "/app/backend/open_webui/utils/chat.py", line 199, in generate_chat_completion
open-webui-centum | check_model_access(user, model)
open-webui-centum | │ │ └ {'id': 'n8n_pipe_alfa2', 'name': 'Wiki CENTUM (Alfa 2.0)', 'object': 'model', 'created': 1740141761, 'owned_by': 'openai', 'p...
open-webui-centum | │ └ UserModel(id='cca691c4-b5db-452b-846e-d07cb1608969', name='lveron', email='lveron@broobe.com', role='user', profile_image_url...
open-webui-centum | └ <function check_model_access at 0x7f183258e700>
open-webui-centum |
open-webui-centum | File "/app/backend/open_webui/utils/models.py", line 244, in check_model_access
open-webui-centum | raise Exception("Model not found")
open-webui-centum |
open-webui-centum | Exception: Model not found
open-webui-centum | 2025-05-06 20:13:24.392 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 186.22.239.76:0 - "POST /api/v1/tasks/title/completions HTTP/1.1" 400 - {}
Additional Information
No response
@tjbck commented on GitHub (May 6, 2025):
Is your task model available for your user?
@tjbck commented on GitHub (May 6, 2025):
Just verified this, this occurs if the model is not accessible for the user.