[GH-ISSUE #23597] issue: Failed to parse tool server enum value integer #35552

Closed
opened 2026-04-25 09:45:01 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Omripresent on GitHub (Apr 11, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23597

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.8.12

Ollama Version (if applicable)

n/a

Operating System

AlmaLinux

Browser (if applicable)

Firefox 149.0-1

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

Addition of tool integration to OpenWebUI

Actual Behavior

All tool integrations are removed from UI list

Steps to Reproduce

  1. Start from a clean OpenWebUI install
  2. In /admin/settings/integrations add tool server connection
  3. Target Netbox API schema (can use Netbox public demo instance http://demo.netbox.dev/api/schema/)
  4. Save connection
  5. View logs

Logs & Screenshots

Apr 11 12:20:31 chatui01.dc.my.home open-webui[494406]: 2026-04-11 12:20:31.680 | INFO     | open_webui.config:save:205 - Saving 'TOOL_SERVER_CONNECTIONS' to the database
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: 2026-04-11 12:20:32.123 | INFO     | uvicorn.protocols.http.httptools_impl:send:483 - 10.10.10.143:0 - "POST /api/v1/configs/tool_servers HTTP/1.1" 500
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: Exception in ASGI application
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   + Exception Group Traceback (most recent call last):
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 81, in collapse_excgroups
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   |     yield
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 192, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   |     async with anyio.create_task_group() as task_group:
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   |   File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 799, in __aexit__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   |     raise BaseExceptionGroup(
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   +-+---------------- 1 ----------------
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     | Traceback (most recent call last):
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 416, in run_asgi
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     result = await app(  # type: ignore[func-returns-value]
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     return await self.app(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1160, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await super().__call__(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 90, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await self.middleware_stack(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await self.app(scope, receive, _send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/sessions.py", line 88, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await self.app(scope, receive, send_wrapper)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 96, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await self.simple_response(scope, receive, send, request_headers=headers)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 154, in simple_response
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await self.app(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     with recv_stream, send_stream, collapse_excgroups():
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     self.gen.throw(typ, value, traceback)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     response = await self.dispatch_func(request, call_next)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/app/backend/open_webui/main.py", line 1472, in inspect_websocket
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     return await call_next(request)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |            ^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     raise app_exc from app_exc.__cause__ or app_exc.__context__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await self.app(scope, receive_or_disconnect, send_no_error)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     with recv_stream, send_stream, collapse_excgroups():
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     self.gen.throw(typ, value, traceback)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     response = await self.dispatch_func(request, call_next)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/app/backend/open_webui/main.py", line 1454, in check_url
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     response = await call_next(request)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |                ^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     raise app_exc from app_exc.__cause__ or app_exc.__context__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await self.app(scope, receive_or_disconnect, send_no_error)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     with recv_stream, send_stream, collapse_excgroups():
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     self.gen.throw(typ, value, traceback)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     response = await self.dispatch_func(request, call_next)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/app/backend/open_webui/main.py", line 1421, in commit_session_after_request
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     response = await call_next(request)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |                ^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     raise app_exc from app_exc.__cause__ or app_exc.__context__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await self.app(scope, receive_or_disconnect, send_no_error)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/app/backend/open_webui/main.py", line 1413, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await self.app(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     with recv_stream, send_stream, collapse_excgroups():
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     self.gen.throw(typ, value, traceback)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     response = await self.dispatch_func(request, call_next)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/app/backend/open_webui/utils/security_headers.py", line 11, in dispatch
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     response = await call_next(request)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |                ^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     raise app_exc from app_exc.__cause__ or app_exc.__context__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await self.app(scope, receive_or_disconnect, send_no_error)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     with recv_stream, send_stream, collapse_excgroups():
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     self.gen.throw(typ, value, traceback)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     response = await self.dispatch_func(request, call_next)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/app/backend/open_webui/main.py", line 1366, in dispatch
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     response = await call_next(request)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |                ^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     raise app_exc from app_exc.__cause__ or app_exc.__context__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await self.app(scope, receive_or_disconnect, send_no_error)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette_compress/__init__.py", line 104, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     return await self._zstd(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette_compress/_zstd_legacy.py", line 107, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await self.app(scope, receive, wrapper)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await app(scope, receive, sender)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await self.app(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 660, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await self.middleware_stack(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 680, in app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await route.handle(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await self.app(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 130, in app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await app(scope, receive, sender)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 116, in app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     response = await f(request)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |                ^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 670, in app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     raw_response = await run_endpoint_function(
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     return await dependant.call(**values)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/app/backend/open_webui/routers/configs.py", line 196, in set_tool_servers_config
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     await set_tool_servers(request)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/app/backend/open_webui/utils/tools.py", line 795, in set_tool_servers
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     request.app.state.TOOL_SERVERS = await get_tool_servers_data(request.app.state.config.TOOL_SERVER_CONNECTIONS)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/app/backend/open_webui/utils/tools.py", line 1164, in get_tool_servers_data
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     'specs': convert_openapi_to_tool_payload(response),
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |   File "/app/backend/open_webui/utils/tools.py", line 755, in convert_openapi_to_tool_payload
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |     description += f'. Possible values: {", ".join(param_schema.get("enum"))}'
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     | TypeError: sequence item 0: expected str instance, int found
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     +------------------------------------
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: 
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: The above exception was the direct cause of the following exception:
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: 
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: Traceback (most recent call last):
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 416, in run_asgi
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     result = await app(  # type: ignore[func-returns-value]
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     return await self.app(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1160, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await super().__call__(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 90, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await self.middleware_stack(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await self.app(scope, receive, _send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/sessions.py", line 88, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await self.app(scope, receive, send_wrapper)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 96, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await self.simple_response(scope, receive, send, request_headers=headers)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 154, in simple_response
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await self.app(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     with recv_stream, send_stream, collapse_excgroups():
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     self.gen.throw(typ, value, traceback)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     response = await self.dispatch_func(request, call_next)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/app/backend/open_webui/main.py", line 1472, in inspect_websocket
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     return await call_next(request)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:            ^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     raise app_exc from app_exc.__cause__ or app_exc.__context__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await self.app(scope, receive_or_disconnect, send_no_error)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     with recv_stream, send_stream, collapse_excgroups():
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     self.gen.throw(typ, value, traceback)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     response = await self.dispatch_func(request, call_next)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/app/backend/open_webui/main.py", line 1454, in check_url
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     response = await call_next(request)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:                ^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     raise app_exc from app_exc.__cause__ or app_exc.__context__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await self.app(scope, receive_or_disconnect, send_no_error)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     with recv_stream, send_stream, collapse_excgroups():
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     self.gen.throw(typ, value, traceback)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     response = await self.dispatch_func(request, call_next)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/app/backend/open_webui/main.py", line 1421, in commit_session_after_request
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     response = await call_next(request)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:                ^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     raise app_exc from app_exc.__cause__ or app_exc.__context__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await self.app(scope, receive_or_disconnect, send_no_error)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/app/backend/open_webui/main.py", line 1413, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await self.app(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     with recv_stream, send_stream, collapse_excgroups():
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     self.gen.throw(typ, value, traceback)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     response = await self.dispatch_func(request, call_next)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/app/backend/open_webui/utils/security_headers.py", line 11, in dispatch
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     response = await call_next(request)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:                ^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     raise app_exc from app_exc.__cause__ or app_exc.__context__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await self.app(scope, receive_or_disconnect, send_no_error)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     with recv_stream, send_stream, collapse_excgroups():
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     self.gen.throw(typ, value, traceback)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     response = await self.dispatch_func(request, call_next)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/app/backend/open_webui/main.py", line 1366, in dispatch
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     response = await call_next(request)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:                ^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     raise app_exc from app_exc.__cause__ or app_exc.__context__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await self.app(scope, receive_or_disconnect, send_no_error)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette_compress/__init__.py", line 104, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     return await self._zstd(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette_compress/_zstd_legacy.py", line 107, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await self.app(scope, receive, wrapper)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await app(scope, receive, sender)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await self.app(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 660, in __call__
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await self.middleware_stack(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 680, in app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await route.handle(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await self.app(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 130, in app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     raise exc
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await app(scope, receive, sender)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 116, in app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     response = await f(request)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:                ^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 670, in app
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     raw_response = await run_endpoint_function(
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     return await dependant.call(**values)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/app/backend/open_webui/routers/configs.py", line 196, in set_tool_servers_config
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     await set_tool_servers(request)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/app/backend/open_webui/utils/tools.py", line 795, in set_tool_servers
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     request.app.state.TOOL_SERVERS = await get_tool_servers_data(request.app.state.config.TOOL_SERVER_CONNECTIONS)
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/app/backend/open_webui/utils/tools.py", line 1164, in get_tool_servers_data
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     'specs': convert_openapi_to_tool_payload(response),
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:   File "/app/backend/open_webui/utils/tools.py", line 755, in convert_openapi_to_tool_payload
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:     description += f'. Possible values: {", ".join(param_schema.get("enum"))}'
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]:                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: TypeError: sequence item 0: expected str instance, int found

Additional Information

In this example the record .paths."/api/dcim/console-server-ports/".get.parameters in the param speed__n the enum values are integer. Integer values cannot be joined in a string and should be first cast.
The offending code:
9bd84258d0/backend/open_webui/utils/tools.py (L755)
Should be changed to something like:

description += f'. Possible values: {", ".join(map(str, param_schema.get("enum")))}'
Originally created by @Omripresent on GitHub (Apr 11, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/23597 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.8.12 ### Ollama Version (if applicable) n/a ### Operating System AlmaLinux ### Browser (if applicable) Firefox 149.0-1 ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior Addition of tool integration to OpenWebUI ### Actual Behavior All tool integrations are removed from UI list ### Steps to Reproduce 1. Start from a clean OpenWebUI install 2. In `/admin/settings/integrations` add tool server connection 3. Target Netbox API schema (can use Netbox public demo instance http://demo.netbox.dev/api/schema/) * URL = http://demo.netbox.dev/api * Sign up and generate a v2 bearer token * OpenAPI Spec = schema/ 4. Save connection 5. View logs ### Logs & Screenshots ``` Apr 11 12:20:31 chatui01.dc.my.home open-webui[494406]: 2026-04-11 12:20:31.680 | INFO | open_webui.config:save:205 - Saving 'TOOL_SERVER_CONNECTIONS' to the database Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: 2026-04-11 12:20:32.123 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.10.10.143:0 - "POST /api/v1/configs/tool_servers HTTP/1.1" 500 Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: Exception in ASGI application Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: + Exception Group Traceback (most recent call last): Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 81, in collapse_excgroups Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | yield Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 192, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | async with anyio.create_task_group() as task_group: Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 799, in __aexit__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | raise BaseExceptionGroup( Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: +-+---------------- 1 ---------------- Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | Traceback (most recent call last): Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 416, in run_asgi Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | result = await app( # type: ignore[func-returns-value] Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | return await self.app(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1160, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await super().__call__(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 90, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await self.middleware_stack(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await self.app(scope, receive, _send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/sessions.py", line 88, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await self.app(scope, receive, send_wrapper) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 96, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await self.simple_response(scope, receive, send, request_headers=headers) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 154, in simple_response Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await self.app(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | with recv_stream, send_stream, collapse_excgroups(): Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | self.gen.throw(typ, value, traceback) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | response = await self.dispatch_func(request, call_next) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/app/backend/open_webui/main.py", line 1472, in inspect_websocket Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | return await call_next(request) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | raise app_exc from app_exc.__cause__ or app_exc.__context__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await self.app(scope, receive_or_disconnect, send_no_error) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | with recv_stream, send_stream, collapse_excgroups(): Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | self.gen.throw(typ, value, traceback) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | response = await self.dispatch_func(request, call_next) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/app/backend/open_webui/main.py", line 1454, in check_url Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | response = await call_next(request) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | raise app_exc from app_exc.__cause__ or app_exc.__context__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await self.app(scope, receive_or_disconnect, send_no_error) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | with recv_stream, send_stream, collapse_excgroups(): Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | self.gen.throw(typ, value, traceback) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | response = await self.dispatch_func(request, call_next) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/app/backend/open_webui/main.py", line 1421, in commit_session_after_request Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | response = await call_next(request) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | raise app_exc from app_exc.__cause__ or app_exc.__context__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await self.app(scope, receive_or_disconnect, send_no_error) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/app/backend/open_webui/main.py", line 1413, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await self.app(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | with recv_stream, send_stream, collapse_excgroups(): Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | self.gen.throw(typ, value, traceback) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | response = await self.dispatch_func(request, call_next) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/app/backend/open_webui/utils/security_headers.py", line 11, in dispatch Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | response = await call_next(request) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | raise app_exc from app_exc.__cause__ or app_exc.__context__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await self.app(scope, receive_or_disconnect, send_no_error) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | with recv_stream, send_stream, collapse_excgroups(): Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | self.gen.throw(typ, value, traceback) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | response = await self.dispatch_func(request, call_next) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/app/backend/open_webui/main.py", line 1366, in dispatch Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | response = await call_next(request) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | raise app_exc from app_exc.__cause__ or app_exc.__context__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await self.app(scope, receive_or_disconnect, send_no_error) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette_compress/__init__.py", line 104, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | return await self._zstd(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette_compress/_zstd_legacy.py", line 107, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await self.app(scope, receive, wrapper) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 63, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await app(scope, receive, sender) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await self.app(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 660, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await self.middleware_stack(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 680, in app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await route.handle(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await self.app(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 130, in app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await wrap_app_handling_exceptions(app, request)(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await app(scope, receive, sender) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 116, in app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | response = await f(request) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 670, in app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | raw_response = await run_endpoint_function( Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 324, in run_endpoint_function Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | return await dependant.call(**values) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/app/backend/open_webui/routers/configs.py", line 196, in set_tool_servers_config Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | await set_tool_servers(request) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/app/backend/open_webui/utils/tools.py", line 795, in set_tool_servers Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | request.app.state.TOOL_SERVERS = await get_tool_servers_data(request.app.state.config.TOOL_SERVER_CONNECTIONS) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/app/backend/open_webui/utils/tools.py", line 1164, in get_tool_servers_data Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | 'specs': convert_openapi_to_tool_payload(response), Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | File "/app/backend/open_webui/utils/tools.py", line 755, in convert_openapi_to_tool_payload Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | description += f'. Possible values: {", ".join(param_schema.get("enum"))}' Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: | TypeError: sequence item 0: expected str instance, int found Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: +------------------------------------ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: The above exception was the direct cause of the following exception: Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: Traceback (most recent call last): Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 416, in run_asgi Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: result = await app( # type: ignore[func-returns-value] Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: return await self.app(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1160, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await super().__call__(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 90, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await self.middleware_stack(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await self.app(scope, receive, _send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/sessions.py", line 88, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await self.app(scope, receive, send_wrapper) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 96, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await self.simple_response(scope, receive, send, request_headers=headers) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 154, in simple_response Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await self.app(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: with recv_stream, send_stream, collapse_excgroups(): Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: self.gen.throw(typ, value, traceback) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: response = await self.dispatch_func(request, call_next) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/app/backend/open_webui/main.py", line 1472, in inspect_websocket Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: return await call_next(request) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: raise app_exc from app_exc.__cause__ or app_exc.__context__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await self.app(scope, receive_or_disconnect, send_no_error) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: with recv_stream, send_stream, collapse_excgroups(): Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: self.gen.throw(typ, value, traceback) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: response = await self.dispatch_func(request, call_next) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/app/backend/open_webui/main.py", line 1454, in check_url Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: response = await call_next(request) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: raise app_exc from app_exc.__cause__ or app_exc.__context__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await self.app(scope, receive_or_disconnect, send_no_error) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: with recv_stream, send_stream, collapse_excgroups(): Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: self.gen.throw(typ, value, traceback) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: response = await self.dispatch_func(request, call_next) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/app/backend/open_webui/main.py", line 1421, in commit_session_after_request Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: response = await call_next(request) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: raise app_exc from app_exc.__cause__ or app_exc.__context__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await self.app(scope, receive_or_disconnect, send_no_error) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/app/backend/open_webui/main.py", line 1413, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await self.app(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: with recv_stream, send_stream, collapse_excgroups(): Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: self.gen.throw(typ, value, traceback) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: response = await self.dispatch_func(request, call_next) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/app/backend/open_webui/utils/security_headers.py", line 11, in dispatch Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: response = await call_next(request) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: raise app_exc from app_exc.__cause__ or app_exc.__context__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await self.app(scope, receive_or_disconnect, send_no_error) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: with recv_stream, send_stream, collapse_excgroups(): Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: self.gen.throw(typ, value, traceback) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 193, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: response = await self.dispatch_func(request, call_next) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/app/backend/open_webui/main.py", line 1366, in dispatch Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: response = await call_next(request) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 168, in call_next Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: raise app_exc from app_exc.__cause__ or app_exc.__context__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await self.app(scope, receive_or_disconnect, send_no_error) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette_compress/__init__.py", line 104, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: return await self._zstd(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette_compress/_zstd_legacy.py", line 107, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await self.app(scope, receive, wrapper) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 63, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await app(scope, receive, sender) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await self.app(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 660, in __call__ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await self.middleware_stack(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 680, in app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await route.handle(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await self.app(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 130, in app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await wrap_app_handling_exceptions(app, request)(scope, receive, send) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: raise exc Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await app(scope, receive, sender) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 116, in app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: response = await f(request) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 670, in app Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: raw_response = await run_endpoint_function( Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 324, in run_endpoint_function Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: return await dependant.call(**values) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/app/backend/open_webui/routers/configs.py", line 196, in set_tool_servers_config Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: await set_tool_servers(request) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/app/backend/open_webui/utils/tools.py", line 795, in set_tool_servers Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: request.app.state.TOOL_SERVERS = await get_tool_servers_data(request.app.state.config.TOOL_SERVER_CONNECTIONS) Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/app/backend/open_webui/utils/tools.py", line 1164, in get_tool_servers_data Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: 'specs': convert_openapi_to_tool_payload(response), Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: File "/app/backend/open_webui/utils/tools.py", line 755, in convert_openapi_to_tool_payload Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: description += f'. Possible values: {", ".join(param_schema.get("enum"))}' Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 11 12:20:32 chatui01.dc.my.home open-webui[494406]: TypeError: sequence item 0: expected str instance, int found ``` ### Additional Information In this example the record `.paths."/api/dcim/console-server-ports/".get.parameters` in the param `speed__n` the enum values are integer. Integer values cannot be joined in a string and should be first cast. The offending code: https://github.com/open-webui/open-webui/blob/9bd84258d09eefe7bf975878fb0e31a5dadfe0f8/backend/open_webui/utils/tools.py#L755 Should be changed to something like: ```python description += f'. Possible values: {", ".join(map(str, param_schema.get("enum")))}' ```
GiteaMirror added the bug label 2026-04-25 09:45:01 -05:00
Author
Owner

@tjbck commented on GitHub (Apr 12, 2026):

Addressed in dev.

<!-- gh-comment-id:4232830807 --> @tjbck commented on GitHub (Apr 12, 2026): Addressed in dev.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#35552