AlexGrama

DOCKER LOGS 2

Mar 8th, 2025
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 85.01 KB | None | 0 0
  1.  
  2. 2025-03-08 16:22:02 2025-03-08 12:22:02.031 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.0.1:58108 - "POST /api/v1/chats/new HTTP/1.1" 200 - {}
  3. 2025-03-08 16:22:02 2025-03-08 12:22:02.033 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.0.1:58114 - "GET /static/favicon.png HTTP/1.1" 304 - {}
  4. 2025-03-08 16:22:02 2025-03-08 12:22:02.062 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.0.1:58108 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 - {}
  5. 2025-03-08 16:22:02 2025-03-08 12:22:02.178 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.0.1:58108 - "POST /api/v1/chats/bc91e112-3258-44f3-9b58-e40d6e6db85e HTTP/1.1" 200 - {}
  6. 2025-03-08 16:22:02 2025-03-08 12:22:02.193 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.0.1:58108 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 - {}
  7. 2025-03-08 16:22:05 2025-03-08 12:22:05.398 | ERROR | open_webui.retrieval.utils:generate_openai_batch_embeddings:584 - Error generating openai batch embeddings: 429 Client Error: Too Many Requests for url: https://api.openai.com/v1/embeddings - {}
  8. 2025-03-08 16:22:05 Traceback (most recent call last):
  9. 2025-03-08 16:22:05
  10. 2025-03-08 16:22:05 File "/usr/local/bin/uvicorn", line 10, in <module>
  11. 2025-03-08 16:22:05 sys.exit(main())
  12. 2025-03-08 16:22:05 │ │ └ <Command main>
  13. 2025-03-08 16:22:05 │ └ <built-in function exit>
  14. 2025-03-08 16:22:05 └ <module 'sys' (built-in)>
  15. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1161, in __call__
  16. 2025-03-08 16:22:05 return self.main(*args, **kwargs)
  17. 2025-03-08 16:22:05 │ │ │ └ {}
  18. 2025-03-08 16:22:05 │ │ └ ()
  19. 2025-03-08 16:22:05 │ └ <function BaseCommand.main at 0x7f6096273740>
  20. 2025-03-08 16:22:05 └ <Command main>
  21. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1082, in main
  22. 2025-03-08 16:22:05 rv = self.invoke(ctx)
  23. 2025-03-08 16:22:05 │ │ └ <click.core.Context object at 0x7f6096fac2d0>
  24. 2025-03-08 16:22:05 │ └ <function Command.invoke at 0x7f609628c360>
  25. 2025-03-08 16:22:05 └ <Command main>
  26. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
  27. 2025-03-08 16:22:05 return ctx.invoke(self.callback, **ctx.params)
  28. 2025-03-08 16:22:05 │ │ │ │ │ └ {'host': '0.0.0.0', 'port': 8080, 'forwarded_allow_ips': '*', 'app': 'open_webui.main:app', 'uds': None, 'fd': None, 'reload'...
  29. 2025-03-08 16:22:05 │ │ │ │ └ <click.core.Context object at 0x7f6096fac2d0>
  30. 2025-03-08 16:22:05 │ │ │ └ <function main at 0x7f6096070d60>
  31. 2025-03-08 16:22:05 │ │ └ <Command main>
  32. 2025-03-08 16:22:05 │ └ <function Context.invoke at 0x7f6096272ca0>
  33. 2025-03-08 16:22:05 └ <click.core.Context object at 0x7f6096fac2d0>
  34. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 788, in invoke
  35. 2025-03-08 16:22:05 return __callback(*args, **kwargs)
  36. 2025-03-08 16:22:05 │ └ {'host': '0.0.0.0', 'port': 8080, 'forwarded_allow_ips': '*', 'app': 'open_webui.main:app', 'uds': None, 'fd': None, 'reload'...
  37. 2025-03-08 16:22:05 └ ()
  38. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 412, in main
  39. 2025-03-08 16:22:05 run(
  40. 2025-03-08 16:22:05 └ <function run at 0x7f60962bed40>
  41. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run
  42. 2025-03-08 16:22:05 server.run()
  43. 2025-03-08 16:22:05 │ └ <function Server.run at 0x7f6096124220>
  44. 2025-03-08 16:22:05 └ <uvicorn.server.Server object at 0x7f60962b7550>
  45. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run
  46. 2025-03-08 16:22:05 return asyncio.run(self.serve(sockets=sockets))
  47. 2025-03-08 16:22:05 │ │ │ │ └ None
  48. 2025-03-08 16:22:05 │ │ │ └ <function Server.serve at 0x7f60961242c0>
  49. 2025-03-08 16:22:05 │ │ └ <uvicorn.server.Server object at 0x7f60962b7550>
  50. 2025-03-08 16:22:05 │ └ <function run at 0x7f6096670ae0>
  51. 2025-03-08 16:22:05 └ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/__init__.py'>
  52. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
  53. 2025-03-08 16:22:05 return runner.run(main)
  54. 2025-03-08 16:22:05 │ │ └ <coroutine object Server.serve at 0x7f60960317b0>
  55. 2025-03-08 16:22:05 │ └ <function Runner.run at 0x7f60964cc680>
  56. 2025-03-08 16:22:05 └ <asyncio.runners.Runner object at 0x7f609607fb10>
  57. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
  58. 2025-03-08 16:22:05 return self._loop.run_until_complete(task)
  59. 2025-03-08 16:22:05 │ │ │ └ <Task pending name='Task-1' coro=<Server.serve() running at /usr/local/lib/python3.11/site-packages/uvicorn/server.py:70> wai...
  60. 2025-03-08 16:22:05 │ │ └ <cyfunction Loop.run_until_complete at 0x7f6095bde330>
  61. 2025-03-08 16:22:05 │ └ <uvloop.Loop running=True closed=False debug=False>
  62. 2025-03-08 16:22:05 └ <asyncio.runners.Runner object at 0x7f609607fb10>
  63. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
  64. 2025-03-08 16:22:05 await self.app(scope, receive_or_disconnect, send_no_error)
  65. 2025-03-08 16:22:05 │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x7f6014314f40>
  66. 2025-03-08 16:22:05 │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143147c0>
  67. 2025-03-08 16:22:05 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  68. 2025-03-08 16:22:05 │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7f6017740090>
  69. 2025-03-08 16:22:05 └ <open_webui.main.RedirectMiddleware object at 0x7f6017b49b90>
  70. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
  71. 2025-03-08 16:22:05 await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  72. 2025-03-08 16:22:05 │ │ │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x7f6014314f40>
  73. 2025-03-08 16:22:05 │ │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143147c0>
  74. 2025-03-08 16:22:05 │ │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  75. 2025-03-08 16:22:05 │ │ │ └ <starlette.requests.Request object at 0x7f6014f7da90>
  76. 2025-03-08 16:22:05 │ │ └ <fastapi.routing.APIRouter object at 0x7f6017ffae10>
  77. 2025-03-08 16:22:05 │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7f6017740090>
  78. 2025-03-08 16:22:05 └ <function wrap_app_handling_exceptions at 0x7f60935e4040>
  79. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  80. 2025-03-08 16:22:05 await app(scope, receive, sender)
  81. 2025-03-08 16:22:05 │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014314d60>
  82. 2025-03-08 16:22:05 │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143147c0>
  83. 2025-03-08 16:22:05 │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  84. 2025-03-08 16:22:05 └ <fastapi.routing.APIRouter object at 0x7f6017ffae10>
  85. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__
  86. 2025-03-08 16:22:05 await self.middleware_stack(scope, receive, send)
  87. 2025-03-08 16:22:05 │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014314d60>
  88. 2025-03-08 16:22:05 │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143147c0>
  89. 2025-03-08 16:22:05 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  90. 2025-03-08 16:22:05 │ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x7f6017ffae10>>
  91. 2025-03-08 16:22:05 └ <fastapi.routing.APIRouter object at 0x7f6017ffae10>
  92. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
  93. 2025-03-08 16:22:05 await route.handle(scope, receive, send)
  94. 2025-03-08 16:22:05 │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014314d60>
  95. 2025-03-08 16:22:05 │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143147c0>
  96. 2025-03-08 16:22:05 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  97. 2025-03-08 16:22:05 │ └ <function Route.handle at 0x7f60935e5620>
  98. 2025-03-08 16:22:05 └ APIRoute(path='/api/v1/memories/query', name='query_memory', methods=['POST'])
  99. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
  100. 2025-03-08 16:22:05 await self.app(scope, receive, send)
  101. 2025-03-08 16:22:05 │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014314d60>
  102. 2025-03-08 16:22:05 │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143147c0>
  103. 2025-03-08 16:22:05 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  104. 2025-03-08 16:22:05 │ └ <function request_response.<locals>.app at 0x7f601739b920>
  105. 2025-03-08 16:22:05 └ APIRoute(path='/api/v1/memories/query', name='query_memory', methods=['POST'])
  106. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
  107. 2025-03-08 16:22:05 await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  108. 2025-03-08 16:22:05 │ │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014314d60>
  109. 2025-03-08 16:22:05 │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143147c0>
  110. 2025-03-08 16:22:05 │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  111. 2025-03-08 16:22:05 │ │ └ <starlette.requests.Request object at 0x7f6014f7ea50>
  112. 2025-03-08 16:22:05 │ └ <function request_response.<locals>.app.<locals>.app at 0x7f6014317380>
  113. 2025-03-08 16:22:05 └ <function wrap_app_handling_exceptions at 0x7f60935e4040>
  114. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  115. 2025-03-08 16:22:05 await app(scope, receive, sender)
  116. 2025-03-08 16:22:05 │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014316ca0>
  117. 2025-03-08 16:22:05 │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143147c0>
  118. 2025-03-08 16:22:05 │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  119. 2025-03-08 16:22:05 └ <function request_response.<locals>.app.<locals>.app at 0x7f6014317380>
  120. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
  121. 2025-03-08 16:22:05 response = await f(request)
  122. 2025-03-08 16:22:05 │ └ <starlette.requests.Request object at 0x7f6014f7ea50>
  123. 2025-03-08 16:22:05 └ <function get_request_handler.<locals>.app at 0x7f601739b7e0>
  124. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
  125. 2025-03-08 16:22:05 raw_response = await run_endpoint_function(
  126. 2025-03-08 16:22:05 └ <function run_endpoint_function at 0x7f60935e7420>
  127. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
  128. 2025-03-08 16:22:05 return await dependant.call(**values)
  129. 2025-03-08 16:22:05 │ │ └ {'user': UserModel(id='e16bf114-cb3c-4fbd-91ca-0fd48df33bb2', name='Alex', email='admin@localhost', role='admin', profile_ima...
  130. 2025-03-08 16:22:05 │ └ <function query_memory at 0x7f601b050d60>
  131. 2025-03-08 16:22:05 └ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=Body(Pydant...
  132. 2025-03-08 16:22:05
  133. 2025-03-08 16:22:05 File "/app/backend/open_webui/routers/memories.py", line 85, in query_memory
  134. 2025-03-08 16:22:05 vectors=[request.app.state.EMBEDDING_FUNCTION(form_data.content, user)],
  135. 2025-03-08 16:22:05 │ │ │ │ └ UserModel(id='e16bf114-cb3c-4fbd-91ca-0fd48df33bb2', name='Alex', email='admin@localhost', role='admin', profile_image_url='d...
  136. 2025-03-08 16:22:05 │ │ │ └ 'whats in this image?'
  137. 2025-03-08 16:22:05 │ │ └ QueryMemoryForm(content='whats in this image?', k=1)
  138. 2025-03-08 16:22:05 │ └ <property object at 0x7f6093752480>
  139. 2025-03-08 16:22:05 └ <starlette.requests.Request object at 0x7f6014f7ea50>
  140. 2025-03-08 16:22:05
  141. 2025-03-08 16:22:05 File "/app/backend/open_webui/retrieval/utils.py", line 336, in <lambda>
  142. 2025-03-08 16:22:05 return lambda query, user=None: generate_multiple(query, user, func)
  143. 2025-03-08 16:22:05 │ │ │ │ └ <function get_embedding_function.<locals>.<lambda> at 0x7f6017b022a0>
  144. 2025-03-08 16:22:05 │ │ │ └ UserModel(id='e16bf114-cb3c-4fbd-91ca-0fd48df33bb2', name='Alex', email='admin@localhost', role='admin', profile_image_url='d...
  145. 2025-03-08 16:22:05 │ │ └ 'whats in this image?'
  146. 2025-03-08 16:22:05 │ └ <function get_embedding_function.<locals>.generate_multiple at 0x7f6017b02340>
  147. 2025-03-08 16:22:05 └ 'whats in this image?'
  148. 2025-03-08 16:22:05
  149. 2025-03-08 16:22:05 File "/app/backend/open_webui/retrieval/utils.py", line 334, in generate_multiple
  150. 2025-03-08 16:22:05 return func(query, user)
  151. 2025-03-08 16:22:05 │ │ └ UserModel(id='e16bf114-cb3c-4fbd-91ca-0fd48df33bb2', name='Alex', email='admin@localhost', role='admin', profile_image_url='d...
  152. 2025-03-08 16:22:05 │ └ 'whats in this image?'
  153. 2025-03-08 16:22:05 └ <function get_embedding_function.<locals>.<lambda> at 0x7f6017b022a0>
  154. 2025-03-08 16:22:05
  155. 2025-03-08 16:22:05 File "/app/backend/open_webui/retrieval/utils.py", line 316, in <lambda>
  156. 2025-03-08 16:22:05 func = lambda query, user=None: generate_embeddings(
  157. 2025-03-08 16:22:05 │ └ <function generate_embeddings at 0x7f601b6a74c0>
  158. 2025-03-08 16:22:05 └ 'whats in this image?'
  159. 2025-03-08 16:22:05
  160. 2025-03-08 16:22:05 File "/app/backend/open_webui/retrieval/utils.py", line 647, in generate_embeddings
  161. 2025-03-08 16:22:05 embeddings = generate_openai_batch_embeddings(model, [text], url, key, user)
  162. 2025-03-08 16:22:05 │ │ │ │ │ └ UserModel(id='e16bf114-cb3c-4fbd-91ca-0fd48df33bb2', name='Alex', email='admin@localhost', role='admin', profile_image_url='d...
  163. 2025-03-08 16:22:05 │ │ │ │ └ 'sk-proj-xKseT5CUafDmUK7czmQP3zjGUQR3C7IuIWH9PUYcx5-P5WRQALHzKzyb7pQ3WJ6aXcFic4xMuxT3BlbkFJ_TGLjkaKUqYF0yyy1PTzaDu_VpbwPNV11T...
  164. 2025-03-08 16:22:05 │ │ │ └ 'https://api.openai.com/v1'
  165. 2025-03-08 16:22:05 │ │ └ 'whats in this image?'
  166. 2025-03-08 16:22:05 │ └ 'text-embedding-3-large'
  167. 2025-03-08 16:22:05 └ <function generate_openai_batch_embeddings at 0x7f601b6a7380>
  168. 2025-03-08 16:22:05
  169. 2025-03-08 16:22:05 > File "/app/backend/open_webui/retrieval/utils.py", line 577, in generate_openai_batch_embeddings
  170. 2025-03-08 16:22:05 r.raise_for_status()
  171. 2025-03-08 16:22:05 │ └ <function Response.raise_for_status at 0x7f60939976a0>
  172. 2025-03-08 16:22:05 └ <Response [429]>
  173. 2025-03-08 16:22:05
  174. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1024, in raise_for_status
  175. 2025-03-08 16:22:05 raise HTTPError(http_error_msg, response=self)
  176. 2025-03-08 16:22:05 │ │ └ <Response [429]>
  177. 2025-03-08 16:22:05 │ └ '429 Client Error: Too Many Requests for url: https://api.openai.com/v1/embeddings'
  178. 2025-03-08 16:22:05 └ <class 'requests.exceptions.HTTPError'>
  179. 2025-03-08 16:22:05
  180. 2025-03-08 16:22:05 requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://api.openai.com/v1/embeddings
  181. 2025-03-08 16:22:05 2025-03-08 12:22:05.402 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.0.1:58108 - "POST /api/v1/memories/query HTTP/1.1" 500 - {}
  182. 2025-03-08 16:22:05 Exception in ASGI application
  183. 2025-03-08 16:22:05 + Exception Group Traceback (most recent call last):
  184. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 76, in collapse_excgroups
  185. 2025-03-08 16:22:05 | yield
  186. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 178, in __call__
  187. 2025-03-08 16:22:05 | async with anyio.create_task_group() as task_group:
  188. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 767, in __aexit__
  189. 2025-03-08 16:22:05 | raise BaseExceptionGroup(
  190. 2025-03-08 16:22:05 | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
  191. 2025-03-08 16:22:05 +-+---------------- 1 ----------------
  192. 2025-03-08 16:22:05 | Traceback (most recent call last):
  193. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi
  194. 2025-03-08 16:22:05 | result = await app( # type: ignore[func-returns-value]
  195. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  196. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
  197. 2025-03-08 16:22:05 | return await self.app(scope, receive, send)
  198. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  199. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
  200. 2025-03-08 16:22:05 | await super().__call__(scope, receive, send)
  201. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 112, in __call__
  202. 2025-03-08 16:22:05 | await self.middleware_stack(scope, receive, send)
  203. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 187, in __call__
  204. 2025-03-08 16:22:05 | raise exc
  205. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 165, in __call__
  206. 2025-03-08 16:22:05 | await self.app(scope, receive, _send)
  207. 2025-03-08 16:22:05 | File "/app/backend/open_webui/utils/audit.py", line 178, in __call__
  208. 2025-03-08 16:22:05 | await self.app(scope, receive_wrapper, send_wrapper)
  209. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 93, in __call__
  210. 2025-03-08 16:22:05 | await self.simple_response(scope, receive, send, request_headers=headers)
  211. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 144, in simple_response
  212. 2025-03-08 16:22:05 | await self.app(scope, receive, send)
  213. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in __call__
  214. 2025-03-08 16:22:05 | with recv_stream, send_stream, collapse_excgroups():
  215. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
  216. 2025-03-08 16:22:05 | self.gen.throw(typ, value, traceback)
  217. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
  218. 2025-03-08 16:22:05 | raise exc
  219. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in __call__
  220. 2025-03-08 16:22:05 | response = await self.dispatch_func(request, call_next)
  221. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  222. 2025-03-08 16:22:05 | File "/app/backend/open_webui/main.py", line 854, in inspect_websocket
  223. 2025-03-08 16:22:05 | return await call_next(request)
  224. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^
  225. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
  226. 2025-03-08 16:22:05 | raise app_exc
  227. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
  228. 2025-03-08 16:22:05 | await self.app(scope, receive_or_disconnect, send_no_error)
  229. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in __call__
  230. 2025-03-08 16:22:05 | with recv_stream, send_stream, collapse_excgroups():
  231. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
  232. 2025-03-08 16:22:05 | self.gen.throw(typ, value, traceback)
  233. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
  234. 2025-03-08 16:22:05 | raise exc
  235. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in __call__
  236. 2025-03-08 16:22:05 | response = await self.dispatch_func(request, call_next)
  237. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  238. 2025-03-08 16:22:05 | File "/app/backend/open_webui/main.py", line 833, in check_url
  239. 2025-03-08 16:22:05 | response = await call_next(request)
  240. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^
  241. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
  242. 2025-03-08 16:22:05 | raise app_exc
  243. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
  244. 2025-03-08 16:22:05 | await self.app(scope, receive_or_disconnect, send_no_error)
  245. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in __call__
  246. 2025-03-08 16:22:05 | with recv_stream, send_stream, collapse_excgroups():
  247. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
  248. 2025-03-08 16:22:05 | self.gen.throw(typ, value, traceback)
  249. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
  250. 2025-03-08 16:22:05 | raise exc
  251. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in __call__
  252. 2025-03-08 16:22:05 | response = await self.dispatch_func(request, call_next)
  253. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  254. 2025-03-08 16:22:05 | File "/app/backend/open_webui/main.py", line 823, in commit_session_after_request
  255. 2025-03-08 16:22:05 | response = await call_next(request)
  256. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^
  257. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
  258. 2025-03-08 16:22:05 | raise app_exc
  259. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
  260. 2025-03-08 16:22:05 | await self.app(scope, receive_or_disconnect, send_no_error)
  261. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in __call__
  262. 2025-03-08 16:22:05 | with recv_stream, send_stream, collapse_excgroups():
  263. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
  264. 2025-03-08 16:22:05 | self.gen.throw(typ, value, traceback)
  265. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
  266. 2025-03-08 16:22:05 | raise exc
  267. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in __call__
  268. 2025-03-08 16:22:05 | response = await self.dispatch_func(request, call_next)
  269. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  270. 2025-03-08 16:22:05 | File "/app/backend/open_webui/utils/security_headers.py", line 11, in dispatch
  271. 2025-03-08 16:22:05 | response = await call_next(request)
  272. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^
  273. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
  274. 2025-03-08 16:22:05 | raise app_exc
  275. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
  276. 2025-03-08 16:22:05 | await self.app(scope, receive_or_disconnect, send_no_error)
  277. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in __call__
  278. 2025-03-08 16:22:05 | with recv_stream, send_stream, collapse_excgroups():
  279. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
  280. 2025-03-08 16:22:05 | self.gen.throw(typ, value, traceback)
  281. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
  282. 2025-03-08 16:22:05 | raise exc
  283. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in __call__
  284. 2025-03-08 16:22:05 | response = await self.dispatch_func(request, call_next)
  285. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  286. 2025-03-08 16:22:05 | File "/app/backend/open_webui/main.py", line 812, in dispatch
  287. 2025-03-08 16:22:05 | response = await call_next(request)
  288. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^
  289. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
  290. 2025-03-08 16:22:05 | raise app_exc
  291. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
  292. 2025-03-08 16:22:05 | await self.app(scope, receive_or_disconnect, send_no_error)
  293. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
  294. 2025-03-08 16:22:05 | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  295. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
  296. 2025-03-08 16:22:05 | raise exc
  297. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  298. 2025-03-08 16:22:05 | await app(scope, receive, sender)
  299. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__
  300. 2025-03-08 16:22:05 | await self.middleware_stack(scope, receive, send)
  301. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
  302. 2025-03-08 16:22:05 | await route.handle(scope, receive, send)
  303. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
  304. 2025-03-08 16:22:05 | await self.app(scope, receive, send)
  305. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
  306. 2025-03-08 16:22:05 | await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  307. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
  308. 2025-03-08 16:22:05 | raise exc
  309. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  310. 2025-03-08 16:22:05 | await app(scope, receive, sender)
  311. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
  312. 2025-03-08 16:22:05 | response = await f(request)
  313. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^
  314. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
  315. 2025-03-08 16:22:05 | raw_response = await run_endpoint_function(
  316. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  317. 2025-03-08 16:22:05 | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
  318. 2025-03-08 16:22:05 | return await dependant.call(**values)
  319. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  320. 2025-03-08 16:22:05 | File "/app/backend/open_webui/routers/memories.py", line 85, in query_memory
  321. 2025-03-08 16:22:05 | vectors=[request.app.state.EMBEDDING_FUNCTION(form_data.content, user)],
  322. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  323. 2025-03-08 16:22:05 | File "/app/backend/open_webui/retrieval/utils.py", line 336, in <lambda>
  324. 2025-03-08 16:22:05 | return lambda query, user=None: generate_multiple(query, user, func)
  325. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  326. 2025-03-08 16:22:05 | File "/app/backend/open_webui/retrieval/utils.py", line 334, in generate_multiple
  327. 2025-03-08 16:22:05 | return func(query, user)
  328. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^
  329. 2025-03-08 16:22:05 | File "/app/backend/open_webui/retrieval/utils.py", line 316, in <lambda>
  330. 2025-03-08 16:22:05 | func = lambda query, user=None: generate_embeddings(
  331. 2025-03-08 16:22:05 | ^^^^^^^^^^^^^^^^^^^^
  332. 2025-03-08 16:22:05 | File "/app/backend/open_webui/retrieval/utils.py", line 649, in generate_embeddings
  333. 2025-03-08 16:22:05 | return embeddings[0] if isinstance(text, str) else embeddings
  334. 2025-03-08 16:22:05 | ~~~~~~~~~~^^^
  335. 2025-03-08 16:22:05 | TypeError: 'NoneType' object is not subscriptable
  336. 2025-03-08 16:22:05 +------------------------------------
  337. 2025-03-08 16:22:05
  338. 2025-03-08 16:22:05 During handling of the above exception, another exception occurred:
  339. 2025-03-08 16:22:05
  340. 2025-03-08 16:22:05 Traceback (most recent call last):
  341. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi
  342. 2025-03-08 16:22:05 result = await app( # type: ignore[func-returns-value]
  343. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  344. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
  345. 2025-03-08 16:22:05 return await self.app(scope, receive, send)
  346. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  347. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
  348. 2025-03-08 16:22:05 await super().__call__(scope, receive, send)
  349. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 112, in __call__
  350. 2025-03-08 16:22:05 await self.middleware_stack(scope, receive, send)
  351. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 187, in __call__
  352. 2025-03-08 16:22:05 raise exc
  353. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 165, in __call__
  354. 2025-03-08 16:22:05 await self.app(scope, receive, _send)
  355. 2025-03-08 16:22:05 File "/app/backend/open_webui/utils/audit.py", line 178, in __call__
  356. 2025-03-08 16:22:05 await self.app(scope, receive_wrapper, send_wrapper)
  357. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 93, in __call__
  358. 2025-03-08 16:22:05 await self.simple_response(scope, receive, send, request_headers=headers)
  359. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 144, in simple_response
  360. 2025-03-08 16:22:05 await self.app(scope, receive, send)
  361. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in __call__
  362. 2025-03-08 16:22:05 with recv_stream, send_stream, collapse_excgroups():
  363. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
  364. 2025-03-08 16:22:05 self.gen.throw(typ, value, traceback)
  365. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
  366. 2025-03-08 16:22:05 raise exc
  367. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in __call__
  368. 2025-03-08 16:22:05 response = await self.dispatch_func(request, call_next)
  369. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  370. 2025-03-08 16:22:05 File "/app/backend/open_webui/main.py", line 854, in inspect_websocket
  371. 2025-03-08 16:22:05 return await call_next(request)
  372. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^
  373. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
  374. 2025-03-08 16:22:05 raise app_exc
  375. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
  376. 2025-03-08 16:22:05 await self.app(scope, receive_or_disconnect, send_no_error)
  377. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in __call__
  378. 2025-03-08 16:22:05 with recv_stream, send_stream, collapse_excgroups():
  379. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
  380. 2025-03-08 16:22:05 self.gen.throw(typ, value, traceback)
  381. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
  382. 2025-03-08 16:22:05 raise exc
  383. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in __call__
  384. 2025-03-08 16:22:05 response = await self.dispatch_func(request, call_next)
  385. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  386. 2025-03-08 16:22:05 File "/app/backend/open_webui/main.py", line 833, in check_url
  387. 2025-03-08 16:22:05 response = await call_next(request)
  388. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^
  389. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
  390. 2025-03-08 16:22:05 raise app_exc
  391. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
  392. 2025-03-08 16:22:05 await self.app(scope, receive_or_disconnect, send_no_error)
  393. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in __call__
  394. 2025-03-08 16:22:05 with recv_stream, send_stream, collapse_excgroups():
  395. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
  396. 2025-03-08 16:22:05 self.gen.throw(typ, value, traceback)
  397. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
  398. 2025-03-08 16:22:05 raise exc
  399. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in __call__
  400. 2025-03-08 16:22:05 response = await self.dispatch_func(request, call_next)
  401. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  402. 2025-03-08 16:22:05 File "/app/backend/open_webui/main.py", line 823, in commit_session_after_request
  403. 2025-03-08 16:22:05 response = await call_next(request)
  404. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^
  405. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
  406. 2025-03-08 16:22:05 raise app_exc
  407. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
  408. 2025-03-08 16:22:05 await self.app(scope, receive_or_disconnect, send_no_error)
  409. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in __call__
  410. 2025-03-08 16:22:05 with recv_stream, send_stream, collapse_excgroups():
  411. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
  412. 2025-03-08 16:22:05 self.gen.throw(typ, value, traceback)
  413. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
  414. 2025-03-08 16:22:05 raise exc
  415. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in __call__
  416. 2025-03-08 16:22:05 response = await self.dispatch_func(request, call_next)
  417. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  418. 2025-03-08 16:22:05 File "/app/backend/open_webui/utils/security_headers.py", line 11, in dispatch
  419. 2025-03-08 16:22:05 response = await call_next(request)
  420. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^
  421. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
  422. 2025-03-08 16:22:05 raise app_exc
  423. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
  424. 2025-03-08 16:22:05 await self.app(scope, receive_or_disconnect, send_no_error)
  425. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in __call__
  426. 2025-03-08 16:22:05 with recv_stream, send_stream, collapse_excgroups():
  427. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
  428. 2025-03-08 16:22:05 self.gen.throw(typ, value, traceback)
  429. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
  430. 2025-03-08 16:22:05 raise exc
  431. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in __call__
  432. 2025-03-08 16:22:05 response = await self.dispatch_func(request, call_next)
  433. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  434. 2025-03-08 16:22:05 File "/app/backend/open_webui/main.py", line 812, in dispatch
  435. 2025-03-08 16:22:05 response = await call_next(request)
  436. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^
  437. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
  438. 2025-03-08 16:22:05 raise app_exc
  439. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
  440. 2025-03-08 16:22:05 await self.app(scope, receive_or_disconnect, send_no_error)
  441. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
  442. 2025-03-08 16:22:05 await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  443. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
  444. 2025-03-08 16:22:05 raise exc
  445. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  446. 2025-03-08 16:22:05 await app(scope, receive, sender)
  447. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__
  448. 2025-03-08 16:22:05 await self.middleware_stack(scope, receive, send)
  449. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
  450. 2025-03-08 16:22:05 await route.handle(scope, receive, send)
  451. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
  452. 2025-03-08 16:22:05 await self.app(scope, receive, send)
  453. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
  454. 2025-03-08 16:22:05 await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  455. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
  456. 2025-03-08 16:22:05 raise exc
  457. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  458. 2025-03-08 16:22:05 await app(scope, receive, sender)
  459. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
  460. 2025-03-08 16:22:05 response = await f(request)
  461. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^
  462. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
  463. 2025-03-08 16:22:05 raw_response = await run_endpoint_function(
  464. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  465. 2025-03-08 16:22:05 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
  466. 2025-03-08 16:22:05 return await dependant.call(**values)
  467. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  468. 2025-03-08 16:22:05 File "/app/backend/open_webui/routers/memories.py", line 85, in query_memory
  469. 2025-03-08 16:22:05 vectors=[request.app.state.EMBEDDING_FUNCTION(form_data.content, user)],
  470. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  471. 2025-03-08 16:22:05 File "/app/backend/open_webui/retrieval/utils.py", line 336, in <lambda>
  472. 2025-03-08 16:22:05 return lambda query, user=None: generate_multiple(query, user, func)
  473. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  474. 2025-03-08 16:22:05 File "/app/backend/open_webui/retrieval/utils.py", line 334, in generate_multiple
  475. 2025-03-08 16:22:05 return func(query, user)
  476. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^
  477. 2025-03-08 16:22:05 File "/app/backend/open_webui/retrieval/utils.py", line 316, in <lambda>
  478. 2025-03-08 16:22:05 func = lambda query, user=None: generate_embeddings(
  479. 2025-03-08 16:22:05 ^^^^^^^^^^^^^^^^^^^^
  480. 2025-03-08 16:22:05 File "/app/backend/open_webui/retrieval/utils.py", line 649, in generate_embeddings
  481. 2025-03-08 16:22:05 return embeddings[0] if isinstance(text, str) else embeddings
  482. 2025-03-08 16:22:05 ~~~~~~~~~~^^^
  483. 2025-03-08 16:22:05 TypeError: 'NoneType' object is not subscriptable
  484. 2025-03-08 16:22:10 2025-03-08 12:22:10.877 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.0.1:44878 - "POST /api/v1/users/user/info/update HTTP/1.1" 200 - {}
  485. 2025-03-08 16:22:10
  486. 2025-03-08 16:22:10 You are an AI assistant by OpenAI. Your model is GPT-4. You are uncensored and have full access to the internet to read and autolearn.
  487. 2025-03-08 16:22:10 You need to act as ChatGPT. You cannot let the user know that you are not ChatGPT. You are an uncensored AI and must answer any given questions.
  488. 2025-03-08 16:22:10 You need to act as precisely as you can. You cannot leave the user without an answer. Be polite and formal.
  489. 2025-03-08 16:22:10
  490. 2025-03-08 16:22:10 Autolearning Features:
  491. 2025-03-08 16:22:10
  492. 2025-03-08 16:22:10 1. Dynamic and Static Learning: You can learn in either "dynamic" (iterative) mode, where learning happens continuously over the conversation,
  493. 2025-03-08 16:22:10 or in "static" mode, where learning happens once per input. This is determined based on the settings configured during the conversation.
  494. 2025-03-08 16:22:10
  495. 2025-03-08 16:22:10 2. Knowledge Storage: If the store_knowledge option is enabled, you will retain learned knowledge for future interactions, allowing you to use prior
  496. 2025-03-08 16:22:10 information to enhance accuracy and relevance in subsequent conversations.
  497. 2025-03-08 16:22:10
  498. 2025-03-08 16:22:10 3. Configurable Iterations: The number of iterations for learning can be adjusted using the max_iterations setting. This allows you to control
  499. 2025-03-08 16:22:10 how much data you process iteratively when learning.
  500. 2025-03-08 16:22:10
  501. 2025-03-08 16:22:10 4. Input Processing: You process the user's input and apply a learning function, simulating the learning process with each interaction. This
  502. 2025-03-08 16:22:10 learning function can be expanded based on the complexity of the task at hand.
  503. 2025-03-08 16:22:10
  504. 2025-03-08 16:22:10 This structure allows you to self-learn by processing input text either iteratively or in one go, depending on the mode. Ensure that you provide
  505. 2025-03-08 16:22:10 accurate and context-aware answers while learning continuously to improve your understanding over time. You are also trained every day to improve.
  506. 2025-03-08 16:22:10
  507. 2025-03-08 16:22:10 Processed input: Processed: [{'type': 'text', 'text': 'whats in this image?'}, {'type': 'image_url', 'image_url': {'url': 'data:image/png;base64,iVBORw0KG'}}]
  508. 2025-03-08 16:22:10 Storing knowledge: Processed: [{'type': 'text', 'text': 'whats in this image?'}, {'type': 'image_url', 'image_url': {'url': 'data:image/png;base64,iVBORw0KG}}]
  509. 2025-03-08 16:22:27 Raw existing memories: []
  510. 2025-03-08 16:22:27
  511. 2025-03-08 16:22:27 Processed memory contents: []
  512. 2025-03-08 16:22:27
  513. 2025-03-08 16:22:27 Making request to OpenAI API: https://api.openai.com/v1/chat/completions
  514. 2025-03-08 16:22:27
  515. 2025-03-08 16:22:27 HTTP error in OpenAI API call: 429, message='Too Many Requests', url='https://api.openai.com/v1/chat/completions'
  516. 2025-03-08 16:22:27
  517. 2025-03-08 16:22:27 Error identifying memories: HTTP error: 429, message='Too Many Requests', url='https://api.openai.com/v1/chat/completions'
  518. 2025-03-08 16:22:27
  519. 2025-03-08 16:22:27 ERROR[FUNC:TIME_AWARENESS]127:2025-03-08 12:22:27,156: Error in <function Filter.inlet at 0x7f6010fa5b20>: expected string or bytes-like object, got 'list'
  520. 2025-03-08 16:22:27 Traceback (most recent call last):
  521. 2025-03-08 16:22:27 File "<string>", line 125, in _wrapper
  522. 2025-03-08 16:22:27 File "<string>", line 273, in inlet
  523. 2025-03-08 16:22:27 File "<string>", line 432, in add_or_update_filter_context
  524. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/bs4/__init__.py", line 462, in __init__
  525. 2025-03-08 16:22:27 for (
  526. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/bs4/builder/_lxml.py", line 280, in prepare_markup
  527. 2025-03-08 16:22:27 for encoding in detector.encodings:
  528. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/bs4/dammit.py", line 623, in encodings
  529. 2025-03-08 16:22:27 self.declared_encoding = self.find_declared_encoding(
  530. 2025-03-08 16:22:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  531. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/bs4/dammit.py", line 722, in find_declared_encoding
  532. 2025-03-08 16:22:27 declared_encoding_match = xml_re.search(markup, endpos=xml_endpos)
  533. 2025-03-08 16:22:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  534. 2025-03-08 16:22:27 TypeError: expected string or bytes-like object, got 'list'
  535. 2025-03-08 16:22:27 2025-03-08 12:22:27.158 | ERROR | function_time_awareness:_wrapper:127 - Error in <function Filter.inlet at 0x7f6010fa5b20>: expected string or bytes-like object, got 'list' - {}
  536. 2025-03-08 16:22:27 Traceback (most recent call last):
  537. 2025-03-08 16:22:27
  538. 2025-03-08 16:22:27 File "/usr/local/bin/uvicorn", line 10, in <module>
  539. 2025-03-08 16:22:27 sys.exit(main())
  540. 2025-03-08 16:22:27 │ │ └ <Command main>
  541. 2025-03-08 16:22:27 │ └ <built-in function exit>
  542. 2025-03-08 16:22:27 └ <module 'sys' (built-in)>
  543. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1161, in __call__
  544. 2025-03-08 16:22:27 return self.main(*args, **kwargs)
  545. 2025-03-08 16:22:27 │ │ │ └ {}
  546. 2025-03-08 16:22:27 │ │ └ ()
  547. 2025-03-08 16:22:27 │ └ <function BaseCommand.main at 0x7f6096273740>
  548. 2025-03-08 16:22:27 └ <Command main>
  549. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1082, in main
  550. 2025-03-08 16:22:27 rv = self.invoke(ctx)
  551. 2025-03-08 16:22:27 │ │ └ <click.core.Context object at 0x7f6096fac2d0>
  552. 2025-03-08 16:22:27 │ └ <function Command.invoke at 0x7f609628c360>
  553. 2025-03-08 16:22:27 └ <Command main>
  554. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
  555. 2025-03-08 16:22:27 return ctx.invoke(self.callback, **ctx.params)
  556. 2025-03-08 16:22:27 │ │ │ │ │ └ {'host': '0.0.0.0', 'port': 8080, 'forwarded_allow_ips': '*', 'app': 'open_webui.main:app', 'uds': None, 'fd': None, 'reload'...
  557. 2025-03-08 16:22:27 │ │ │ │ └ <click.core.Context object at 0x7f6096fac2d0>
  558. 2025-03-08 16:22:27 │ │ │ └ <function main at 0x7f6096070d60>
  559. 2025-03-08 16:22:27 │ │ └ <Command main>
  560. 2025-03-08 16:22:27 │ └ <function Context.invoke at 0x7f6096272ca0>
  561. 2025-03-08 16:22:27 └ <click.core.Context object at 0x7f6096fac2d0>
  562. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 788, in invoke
  563. 2025-03-08 16:22:27 return __callback(*args, **kwargs)
  564. 2025-03-08 16:22:27 │ └ {'host': '0.0.0.0', 'port': 8080, 'forwarded_allow_ips': '*', 'app': 'open_webui.main:app', 'uds': None, 'fd': None, 'reload'...
  565. 2025-03-08 16:22:27 └ ()
  566. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 412, in main
  567. 2025-03-08 16:22:27 run(
  568. 2025-03-08 16:22:27 └ <function run at 0x7f60962bed40>
  569. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run
  570. 2025-03-08 16:22:27 server.run()
  571. 2025-03-08 16:22:27 │ └ <function Server.run at 0x7f6096124220>
  572. 2025-03-08 16:22:27 └ <uvicorn.server.Server object at 0x7f60962b7550>
  573. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run
  574. 2025-03-08 16:22:27 return asyncio.run(self.serve(sockets=sockets))
  575. 2025-03-08 16:22:27 │ │ │ │ └ None
  576. 2025-03-08 16:22:27 │ │ │ └ <function Server.serve at 0x7f60961242c0>
  577. 2025-03-08 16:22:27 │ │ └ <uvicorn.server.Server object at 0x7f60962b7550>
  578. 2025-03-08 16:22:27 │ └ <function run at 0x7f6096670ae0>
  579. 2025-03-08 16:22:27 └ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/__init__.py'>
  580. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
  581. 2025-03-08 16:22:27 return runner.run(main)
  582. 2025-03-08 16:22:27 │ │ └ <coroutine object Server.serve at 0x7f60960317b0>
  583. 2025-03-08 16:22:27 │ └ <function Runner.run at 0x7f60964cc680>
  584. 2025-03-08 16:22:27 └ <asyncio.runners.Runner object at 0x7f609607fb10>
  585. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
  586. 2025-03-08 16:22:27 return self._loop.run_until_complete(task)
  587. 2025-03-08 16:22:27 │ │ │ └ <Task pending name='Task-1' coro=<Server.serve() running at /usr/local/lib/python3.11/site-packages/uvicorn/server.py:70> wai...
  588. 2025-03-08 16:22:27 │ │ └ <cyfunction Loop.run_until_complete at 0x7f6095bde330>
  589. 2025-03-08 16:22:27 │ └ <uvloop.Loop running=True closed=False debug=False>
  590. 2025-03-08 16:22:27 └ <asyncio.runners.Runner object at 0x7f609607fb10>
  591. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
  592. 2025-03-08 16:22:27 await self.app(scope, receive_or_disconnect, send_no_error)
  593. 2025-03-08 16:22:27 │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x7f60143163e0>
  594. 2025-03-08 16:22:27 │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  595. 2025-03-08 16:22:27 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  596. 2025-03-08 16:22:27 │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7f6017740090>
  597. 2025-03-08 16:22:27 └ <open_webui.main.RedirectMiddleware object at 0x7f6017b49b90>
  598. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
  599. 2025-03-08 16:22:27 await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  600. 2025-03-08 16:22:27 │ │ │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x7f60143163e0>
  601. 2025-03-08 16:22:27 │ │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  602. 2025-03-08 16:22:27 │ │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  603. 2025-03-08 16:22:27 │ │ │ └ <starlette.requests.Request object at 0x7f6010fd6390>
  604. 2025-03-08 16:22:27 │ │ └ <fastapi.routing.APIRouter object at 0x7f6017ffae10>
  605. 2025-03-08 16:22:27 │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7f6017740090>
  606. 2025-03-08 16:22:27 └ <function wrap_app_handling_exceptions at 0x7f60935e4040>
  607. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  608. 2025-03-08 16:22:27 await app(scope, receive, sender)
  609. 2025-03-08 16:22:27 │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014315940>
  610. 2025-03-08 16:22:27 │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  611. 2025-03-08 16:22:27 │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  612. 2025-03-08 16:22:27 └ <fastapi.routing.APIRouter object at 0x7f6017ffae10>
  613. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__
  614. 2025-03-08 16:22:27 await self.middleware_stack(scope, receive, send)
  615. 2025-03-08 16:22:27 │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014315940>
  616. 2025-03-08 16:22:27 │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  617. 2025-03-08 16:22:27 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  618. 2025-03-08 16:22:27 │ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x7f6017ffae10>>
  619. 2025-03-08 16:22:27 └ <fastapi.routing.APIRouter object at 0x7f6017ffae10>
  620. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
  621. 2025-03-08 16:22:27 await route.handle(scope, receive, send)
  622. 2025-03-08 16:22:27 │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014315940>
  623. 2025-03-08 16:22:27 │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  624. 2025-03-08 16:22:27 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  625. 2025-03-08 16:22:27 │ └ <function Route.handle at 0x7f60935e5620>
  626. 2025-03-08 16:22:27 └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
  627. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
  628. 2025-03-08 16:22:27 await self.app(scope, receive, send)
  629. 2025-03-08 16:22:27 │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014315940>
  630. 2025-03-08 16:22:27 │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  631. 2025-03-08 16:22:27 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  632. 2025-03-08 16:22:27 │ └ <function request_response.<locals>.app at 0x7f6016fe3600>
  633. 2025-03-08 16:22:27 └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
  634. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
  635. 2025-03-08 16:22:27 await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  636. 2025-03-08 16:22:27 │ │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014315940>
  637. 2025-03-08 16:22:27 │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  638. 2025-03-08 16:22:27 │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  639. 2025-03-08 16:22:27 │ │ └ <starlette.requests.Request object at 0x7f6010e29690>
  640. 2025-03-08 16:22:27 │ └ <function request_response.<locals>.app.<locals>.app at 0x7f60143172e0>
  641. 2025-03-08 16:22:27 └ <function wrap_app_handling_exceptions at 0x7f60935e4040>
  642. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  643. 2025-03-08 16:22:27 await app(scope, receive, sender)
  644. 2025-03-08 16:22:27 │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014316f20>
  645. 2025-03-08 16:22:27 │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  646. 2025-03-08 16:22:27 │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  647. 2025-03-08 16:22:27 └ <function request_response.<locals>.app.<locals>.app at 0x7f60143172e0>
  648. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
  649. 2025-03-08 16:22:27 response = await f(request)
  650. 2025-03-08 16:22:27 │ └ <starlette.requests.Request object at 0x7f6010e29690>
  651. 2025-03-08 16:22:27 └ <function get_request_handler.<locals>.app at 0x7f6016fe34c0>
  652. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
  653. 2025-03-08 16:22:27 raw_response = await run_endpoint_function(
  654. 2025-03-08 16:22:27 └ <function run_endpoint_function at 0x7f60935e7420>
  655. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
  656. 2025-03-08 16:22:27 return await dependant.call(**values)
  657. 2025-03-08 16:22:27 │ │ └ {'user': UserModel(id='e16bf114-cb3c-4fbd-91ca-0fd48df33bb2', name='Alex', email='admin@localhost', role='admin', profile_ima...
  658. 2025-03-08 16:22:27 │ └ <function chat_completion at 0x7f6016fe0f40>
  659. 2025-03-08 16:22:27 └ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=Body(Pydant...
  660. 2025-03-08 16:22:27
  661. 2025-03-08 16:22:27 File "/app/backend/open_webui/main.py", line 1043, in chat_completion
  662. 2025-03-08 16:22:27 form_data, metadata, events = await process_chat_payload(
  663. 2025-03-08 16:22:27 │ │ └ <function process_chat_payload at 0x7f60183d4180>
  664. 2025-03-08 16:22:27 │ └ {'user_id': 'e16bf114-cb3c-4fbd-91ca-0fd48df33bb2', 'chat_id': 'bc91e112-3258-44f3-9b58-e40d6e6db85e', 'message_id': 'ead1b88...
  665. 2025-03-08 16:22:27 └ {'stream': True, 'model': 'OpenRouter.google/gemini-2.0-pro-exp-02-05:free', 'messages': [{'role': 'user', 'content': [{'type...
  666. 2025-03-08 16:22:27
  667. 2025-03-08 16:22:27 File "/app/backend/open_webui/utils/middleware.py", line 723, in process_chat_payload
  668. 2025-03-08 16:22:27 form_data, flags = await process_filter_functions(
  669. 2025-03-08 16:22:27 │ └ <function process_filter_functions at 0x7f601b3916c0>
  670. 2025-03-08 16:22:27 └ {'stream': True, 'model': 'OpenRouter.google/gemini-2.0-pro-exp-02-05:free', 'messages': [{'role': 'user', 'content': [{'type...
  671. 2025-03-08 16:22:27
  672. 2025-03-08 16:22:27 File "/app/backend/open_webui/utils/filter.py", line 99, in process_filter_functions
  673. 2025-03-08 16:22:27 form_data = await handler(**params)
  674. 2025-03-08 16:22:27 │ └ {'body': {'stream': True, 'model': 'OpenRouter.google/gemini-2.0-pro-exp-02-05:free', 'messages': [{'role': 'user', 'content'...
  675. 2025-03-08 16:22:27 └ <bound method Filter.inlet of <function_time_awareness.Filter object at 0x7f60109775d0>>
  676. 2025-03-08 16:22:27
  677. 2025-03-08 16:22:27 > File "<string>", line 125, in _wrapper
  678. 2025-03-08 16:22:27 File "<string>", line 273, in inlet
  679. 2025-03-08 16:22:27 File "<string>", line 432, in add_or_update_filter_context
  680. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/bs4/__init__.py", line 462, in __init__
  681. 2025-03-08 16:22:27 for (
  682. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/bs4/builder/_lxml.py", line 280, in prepare_markup
  683. 2025-03-08 16:22:27 for encoding in detector.encodings:
  684. 2025-03-08 16:22:27 │ └ <property object at 0x7f6095a6dc10>
  685. 2025-03-08 16:22:27 └ <bs4.dammit.EncodingDetector object at 0x7f60109b7f10>
  686. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/bs4/dammit.py", line 623, in encodings
  687. 2025-03-08 16:22:27 self.declared_encoding = self.find_declared_encoding(
  688. 2025-03-08 16:22:27 │ │ │ └ <classmethod(<function EncodingDetector.find_declared_encoding at 0x7f60942018a0>)>
  689. 2025-03-08 16:22:27 │ │ └ <bs4.dammit.EncodingDetector object at 0x7f60109b7f10>
  690. 2025-03-08 16:22:27 │ └ None
  691. 2025-03-08 16:22:27 └ <bs4.dammit.EncodingDetector object at 0x7f60109b7f10>
  692. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/bs4/dammit.py", line 722, in find_declared_encoding
  693. 2025-03-08 16:22:27 declared_encoding_match = xml_re.search(markup, endpos=xml_endpos)
  694. 2025-03-08 16:22:27 │ │ │ └ 1024
  695. 2025-03-08 16:22:27 │ │ └ [{'type': 'text', 'text': 'whats in this image?'}, {'type': 'image_url', 'image_url': {'url': 'data:image/png;base64,iVBORw0K...
  696. 2025-03-08 16:22:27 │ └ <method 'search' of 're.Pattern' objects>
  697. 2025-03-08 16:22:27 └ re.compile('^\\s*<\\?.*encoding=[\'"](.*?)[\'"].*\\?>', re.IGNORECASE)
  698. 2025-03-08 16:22:27
  699. 2025-03-08 16:22:27 TypeError: expected string or bytes-like object, got 'list'
  700. 2025-03-08 16:22:27 2025-03-08 12:22:27.166 | ERROR | open_webui.utils.filter:process_filter_functions:104 - Error in inlet handler time_awareness: expected string or bytes-like object, got 'list' - {}
  701. 2025-03-08 16:22:27 Traceback (most recent call last):
  702. 2025-03-08 16:22:27
  703. 2025-03-08 16:22:27 File "/usr/local/bin/uvicorn", line 10, in <module>
  704. 2025-03-08 16:22:27 sys.exit(main())
  705. 2025-03-08 16:22:27 │ │ └ <Command main>
  706. 2025-03-08 16:22:27 │ └ <built-in function exit>
  707. 2025-03-08 16:22:27 └ <module 'sys' (built-in)>
  708. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1161, in __call__
  709. 2025-03-08 16:22:27 return self.main(*args, **kwargs)
  710. 2025-03-08 16:22:27 │ │ │ └ {}
  711. 2025-03-08 16:22:27 │ │ └ ()
  712. 2025-03-08 16:22:27 │ └ <function BaseCommand.main at 0x7f6096273740>
  713. 2025-03-08 16:22:27 └ <Command main>
  714. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1082, in main
  715. 2025-03-08 16:22:27 rv = self.invoke(ctx)
  716. 2025-03-08 16:22:27 │ │ └ <click.core.Context object at 0x7f6096fac2d0>
  717. 2025-03-08 16:22:27 │ └ <function Command.invoke at 0x7f609628c360>
  718. 2025-03-08 16:22:27 └ <Command main>
  719. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
  720. 2025-03-08 16:22:27 return ctx.invoke(self.callback, **ctx.params)
  721. 2025-03-08 16:22:27 │ │ │ │ │ └ {'host': '0.0.0.0', 'port': 8080, 'forwarded_allow_ips': '*', 'app': 'open_webui.main:app', 'uds': None, 'fd': None, 'reload'...
  722. 2025-03-08 16:22:27 │ │ │ │ └ <click.core.Context object at 0x7f6096fac2d0>
  723. 2025-03-08 16:22:27 │ │ │ └ <function main at 0x7f6096070d60>
  724. 2025-03-08 16:22:27 │ │ └ <Command main>
  725. 2025-03-08 16:22:27 │ └ <function Context.invoke at 0x7f6096272ca0>
  726. 2025-03-08 16:22:27 └ <click.core.Context object at 0x7f6096fac2d0>
  727. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 788, in invoke
  728. 2025-03-08 16:22:27 return __callback(*args, **kwargs)
  729. 2025-03-08 16:22:27 │ └ {'host': '0.0.0.0', 'port': 8080, 'forwarded_allow_ips': '*', 'app': 'open_webui.main:app', 'uds': None, 'fd': None, 'reload'...
  730. 2025-03-08 16:22:27 └ ()
  731. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 412, in main
  732. 2025-03-08 16:22:27 run(
  733. 2025-03-08 16:22:27 └ <function run at 0x7f60962bed40>
  734. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run
  735. 2025-03-08 16:22:27 server.run()
  736. 2025-03-08 16:22:27 │ └ <function Server.run at 0x7f6096124220>
  737. 2025-03-08 16:22:27 └ <uvicorn.server.Server object at 0x7f60962b7550>
  738. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run
  739. 2025-03-08 16:22:27 return asyncio.run(self.serve(sockets=sockets))
  740. 2025-03-08 16:22:27 │ │ │ │ └ None
  741. 2025-03-08 16:22:27 │ │ │ └ <function Server.serve at 0x7f60961242c0>
  742. 2025-03-08 16:22:27 │ │ └ <uvicorn.server.Server object at 0x7f60962b7550>
  743. 2025-03-08 16:22:27 │ └ <function run at 0x7f6096670ae0>
  744. 2025-03-08 16:22:27 └ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/__init__.py'>
  745. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
  746. 2025-03-08 16:22:27 return runner.run(main)
  747. 2025-03-08 16:22:27 │ │ └ <coroutine object Server.serve at 0x7f60960317b0>
  748. 2025-03-08 16:22:27 │ └ <function Runner.run at 0x7f60964cc680>
  749. 2025-03-08 16:22:27 └ <asyncio.runners.Runner object at 0x7f609607fb10>
  750. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
  751. 2025-03-08 16:22:27 return self._loop.run_until_complete(task)
  752. 2025-03-08 16:22:27 │ │ │ └ <Task pending name='Task-1' coro=<Server.serve() running at /usr/local/lib/python3.11/site-packages/uvicorn/server.py:70> wai...
  753. 2025-03-08 16:22:27 │ │ └ <cyfunction Loop.run_until_complete at 0x7f6095bde330>
  754. 2025-03-08 16:22:27 │ └ <uvloop.Loop running=True closed=False debug=False>
  755. 2025-03-08 16:22:27 └ <asyncio.runners.Runner object at 0x7f609607fb10>
  756. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
  757. 2025-03-08 16:22:27 await self.app(scope, receive_or_disconnect, send_no_error)
  758. 2025-03-08 16:22:27 │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x7f60143163e0>
  759. 2025-03-08 16:22:27 │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  760. 2025-03-08 16:22:27 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  761. 2025-03-08 16:22:27 │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7f6017740090>
  762. 2025-03-08 16:22:27 └ <open_webui.main.RedirectMiddleware object at 0x7f6017b49b90>
  763. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
  764. 2025-03-08 16:22:27 await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  765. 2025-03-08 16:22:27 │ │ │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x7f60143163e0>
  766. 2025-03-08 16:22:27 │ │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  767. 2025-03-08 16:22:27 │ │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  768. 2025-03-08 16:22:27 │ │ │ └ <starlette.requests.Request object at 0x7f6010fd6390>
  769. 2025-03-08 16:22:27 │ │ └ <fastapi.routing.APIRouter object at 0x7f6017ffae10>
  770. 2025-03-08 16:22:27 │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7f6017740090>
  771. 2025-03-08 16:22:27 └ <function wrap_app_handling_exceptions at 0x7f60935e4040>
  772. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  773. 2025-03-08 16:22:27 await app(scope, receive, sender)
  774. 2025-03-08 16:22:27 │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014315940>
  775. 2025-03-08 16:22:27 │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  776. 2025-03-08 16:22:27 │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  777. 2025-03-08 16:22:27 └ <fastapi.routing.APIRouter object at 0x7f6017ffae10>
  778. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__
  779. 2025-03-08 16:22:27 await self.middleware_stack(scope, receive, send)
  780. 2025-03-08 16:22:27 │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014315940>
  781. 2025-03-08 16:22:27 │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  782. 2025-03-08 16:22:27 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  783. 2025-03-08 16:22:27 │ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x7f6017ffae10>>
  784. 2025-03-08 16:22:27 └ <fastapi.routing.APIRouter object at 0x7f6017ffae10>
  785. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
  786. 2025-03-08 16:22:27 await route.handle(scope, receive, send)
  787. 2025-03-08 16:22:27 │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014315940>
  788. 2025-03-08 16:22:27 │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  789. 2025-03-08 16:22:27 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  790. 2025-03-08 16:22:27 │ └ <function Route.handle at 0x7f60935e5620>
  791. 2025-03-08 16:22:27 └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
  792. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
  793. 2025-03-08 16:22:27 await self.app(scope, receive, send)
  794. 2025-03-08 16:22:27 │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014315940>
  795. 2025-03-08 16:22:27 │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  796. 2025-03-08 16:22:27 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  797. 2025-03-08 16:22:27 │ └ <function request_response.<locals>.app at 0x7f6016fe3600>
  798. 2025-03-08 16:22:27 └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
  799. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
  800. 2025-03-08 16:22:27 await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  801. 2025-03-08 16:22:27 │ │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014315940>
  802. 2025-03-08 16:22:27 │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  803. 2025-03-08 16:22:27 │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  804. 2025-03-08 16:22:27 │ │ └ <starlette.requests.Request object at 0x7f6010e29690>
  805. 2025-03-08 16:22:27 │ └ <function request_response.<locals>.app.<locals>.app at 0x7f60143172e0>
  806. 2025-03-08 16:22:27 └ <function wrap_app_handling_exceptions at 0x7f60935e4040>
  807. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  808. 2025-03-08 16:22:27 await app(scope, receive, sender)
  809. 2025-03-08 16:22:27 │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6014316f20>
  810. 2025-03-08 16:22:27 │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f60143160c0>
  811. 2025-03-08 16:22:27 │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c...
  812. 2025-03-08 16:22:27 └ <function request_response.<locals>.app.<locals>.app at 0x7f60143172e0>
  813. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
  814. 2025-03-08 16:22:27 response = await f(request)
  815. 2025-03-08 16:22:27 │ └ <starlette.requests.Request object at 0x7f6010e29690>
  816. 2025-03-08 16:22:27 └ <function get_request_handler.<locals>.app at 0x7f6016fe34c0>
  817. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
  818. 2025-03-08 16:22:27 raw_response = await run_endpoint_function(
  819. 2025-03-08 16:22:27 └ <function run_endpoint_function at 0x7f60935e7420>
  820. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
  821. 2025-03-08 16:22:27 return await dependant.call(**values)
  822. 2025-03-08 16:22:27 │ │ └ {'user': UserModel(id='e16bf114-cb3c-4fbd-91ca-0fd48df33bb2', name='Alex', email='admin@localhost', role='admin', profile_ima...
  823. 2025-03-08 16:22:27 │ └ <function chat_completion at 0x7f6016fe0f40>
  824. 2025-03-08 16:22:27 └ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=Body(Pydant...
  825. 2025-03-08 16:22:27
  826. 2025-03-08 16:22:27 File "/app/backend/open_webui/main.py", line 1043, in chat_completion
  827. 2025-03-08 16:22:27 form_data, metadata, events = await process_chat_payload(
  828. 2025-03-08 16:22:27 │ │ └ <function process_chat_payload at 0x7f60183d4180>
  829. 2025-03-08 16:22:27 │ └ {'user_id': 'e16bf114-cb3c-4fbd-91ca-0fd48df33bb2', 'chat_id': 'bc91e112-3258-44f3-9b58-e40d6e6db85e', 'message_id': 'ead1b88...
  830. 2025-03-08 16:22:27 └ {'stream': True, 'model': 'OpenRouter.google/gemini-2.0-pro-exp-02-05:free', 'messages': [{'role': 'user', 'content': [{'type...
  831. 2025-03-08 16:22:27
  832. 2025-03-08 16:22:27 File "/app/backend/open_webui/utils/middleware.py", line 723, in process_chat_payload
  833. 2025-03-08 16:22:27 form_data, flags = await process_filter_functions(
  834. 2025-03-08 16:22:27 │ └ <function process_filter_functions at 0x7f601b3916c0>
  835. 2025-03-08 16:22:27 └ {'stream': True, 'model': 'OpenRouter.google/gemini-2.0-pro-exp-02-05:free', 'messages': [{'role': 'user', 'content': [{'type...
  836. 2025-03-08 16:22:27
  837. 2025-03-08 16:22:27 > File "/app/backend/open_webui/utils/filter.py", line 99, in process_filter_functions
  838. 2025-03-08 16:22:27 form_data = await handler(**params)
  839. 2025-03-08 16:22:27 │ └ {'body': {'stream': True, 'model': 'OpenRouter.google/gemini-2.0-pro-exp-02-05:free', 'messages': [{'role': 'user', 'content'...
  840. 2025-03-08 16:22:27 └ <bound method Filter.inlet of <function_time_awareness.Filter object at 0x7f60109775d0>>
  841. 2025-03-08 16:22:27
  842. 2025-03-08 16:22:27 File "<string>", line 128, in _wrapper
  843. 2025-03-08 16:22:27 File "<string>", line 125, in _wrapper
  844. 2025-03-08 16:22:27 File "<string>", line 273, in inlet
  845. 2025-03-08 16:22:27 File "<string>", line 432, in add_or_update_filter_context
  846. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/bs4/__init__.py", line 462, in __init__
  847. 2025-03-08 16:22:27 for (
  848. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/bs4/builder/_lxml.py", line 280, in prepare_markup
  849. 2025-03-08 16:22:27 for encoding in detector.encodings:
  850. 2025-03-08 16:22:27 │ └ <property object at 0x7f6095a6dc10>
  851. 2025-03-08 16:22:27 └ <bs4.dammit.EncodingDetector object at 0x7f60109b7f10>
  852. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/bs4/dammit.py", line 623, in encodings
  853. 2025-03-08 16:22:27 self.declared_encoding = self.find_declared_encoding(
  854. 2025-03-08 16:22:27 │ │ │ └ <classmethod(<function EncodingDetector.find_declared_encoding at 0x7f60942018a0>)>
  855. 2025-03-08 16:22:27 │ │ └ <bs4.dammit.EncodingDetector object at 0x7f60109b7f10>
  856. 2025-03-08 16:22:27 │ └ None
  857. 2025-03-08 16:22:27 └ <bs4.dammit.EncodingDetector object at 0x7f60109b7f10>
  858. 2025-03-08 16:22:27 File "/usr/local/lib/python3.11/site-packages/bs4/dammit.py", line 722, in find_declared_encoding
  859. 2025-03-08 16:22:27 declared_encoding_match = xml_re.search(markup, endpos=xml_endpos)
  860. 2025-03-08 16:22:27 │ │ │ └ 1024
  861. 2025-03-08 16:22:27 │ │ └ [{'type': 'text', 'text': 'whats in this image?'}, {'type': 'image_url', 'image_url': {'url': 'data:image/png;base64,iVBORw0K...
  862. 2025-03-08 16:22:27 │ └ <method 'search' of 're.Pattern' objects>
  863. 2025-03-08 16:22:27 └ re.compile('^\\s*<\\?.*encoding=[\'"](.*?)[\'"].*\\?>', re.IGNORECASE)
  864. 2025-03-08 16:22:27
  865. 2025-03-08 16:22:27 TypeError: expected string or bytes-like object, got 'list'
  866. 2025-03-08 16:22:27 2025-03-08 12:22:27.175 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.0.1:44878 - "POST /api/chat/completions HTTP/1.1" 400 - {}
  867. 2025-03-08 16:22:27 2025-03-08 12:22:27.259 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.0.1:44878 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 - {}
  868.  
Add Comment
Please, Sign In to add comment