wandb / openui

OpenUI let's you describe UI using your imagination, then see it rendered live.
https://openui.fly.dev
Apache License 2.0
19.19k stars 1.77k forks source link

Model cannot be loaded #145

Closed liuqiyu closed 5 months ago

liuqiyu commented 5 months ago

operation: window 10

When I run When using the Docker Compose up - d command, the following error message appears:

2024-05-27 18:21:55 INFO (uvicorn.access):  192.168.65.1:29756 - "GET /ai/K3dhavZKb5pn_aU99W7xa HTTP/1.1" 200
2024-05-27 18:21:55 INFO (uvicorn.access):  192.168.65.1:29756 - "GET /v1/session HTTP/1.1" 200
2024-05-27 18:21:55 ERROR (openui):  Ollama Error: Request URL is missing an 'http://' or 'https://' protocol.
2024-05-27 18:21:55 Traceback (most recent call last):
2024-05-27 18:21:55   File "/venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
2024-05-27 18:21:55     yield
2024-05-27 18:21:55   File "/venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 373, in handle_async_request
2024-05-27 18:21:55     resp = await self._pool.handle_async_request(req)
2024-05-27 18:21:55            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:21:55   File "/venv/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 167, in handle_async_request
2024-05-27 18:21:55     raise UnsupportedProtocol(
2024-05-27 18:21:55 httpcore.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol.
2024-05-27 18:21:55 
2024-05-27 18:21:55 The above exception was the direct cause of the following exception:
2024-05-27 18:21:55 
2024-05-27 18:21:55 Traceback (most recent call last):
2024-05-27 18:21:55   File "/app/openui/server.py", line 351, in get_ollama_models
2024-05-27 18:21:55     return (await ollama.list())["models"]
2024-05-27 18:21:55             ^^^^^^^^^^^^^^^^^^^
2024-05-27 18:21:55   File "/venv/lib/python3.12/site-packages/ollama/_client.py", line 621, in list
2024-05-27 18:21:55     response = await self._request('GET', '/api/tags')
2024-05-27 18:21:55                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:21:55   File "/venv/lib/python3.12/site-packages/ollama/_client.py", line 345, in _request
2024-05-27 18:21:55     response = await self._client.request(method, url, **kwargs)
2024-05-27 18:21:55                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:21:55   File "/venv/lib/python3.12/site-packages/httpx/_client.py", line 1574, in request
2024-05-27 18:21:55     return await self.send(request, auth=auth, follow_redirects=follow_redirects)
2024-05-27 18:21:55            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:21:55   File "/venv/lib/python3.12/site-packages/httpx/_client.py", line 1661, in send
2024-05-27 18:21:55     response = await self._send_handling_auth(
2024-05-27 18:21:55                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:21:55   File "/venv/lib/python3.12/site-packages/httpx/_client.py", line 1689, in _send_handling_auth
2024-05-27 18:21:55     response = await self._send_handling_redirects(
2024-05-27 18:21:55                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:21:55   File "/venv/lib/python3.12/site-packages/httpx/_client.py", line 1726, in _send_handling_redirects
2024-05-27 18:21:55     response = await self._send_single_request(request)
2024-05-27 18:21:55                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:21:55   File "/venv/lib/python3.12/site-packages/httpx/_client.py", line 1763, in _send_single_request
2024-05-27 18:21:55     response = await transport.handle_async_request(request)
2024-05-27 18:21:55                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:21:55   File "/venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 372, in handle_async_request
2024-05-27 18:21:55     with map_httpcore_exceptions():
2024-05-27 18:21:55   File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
2024-05-27 18:21:55     self.gen.throw(value)
2024-05-27 18:21:55   File "/venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
2024-05-27 18:21:55     raise mapped_exc(message) from exc
2024-05-27 18:21:55 httpx.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol.
2024-05-27 18:21:56 ERROR (openui):  Groq Error: <!DOCTYPE html>
2024-05-27 18:21:56 <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
2024-05-27 18:21:56 <!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
2024-05-27 18:21:56 <!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
2024-05-27 18:21:56 <!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
2024-05-27 18:21:56 <head>
2024-05-27 18:21:56 <title>Attention Required! | Cloudflare</title>
2024-05-27 18:21:56 <meta charset="UTF-8" />
2024-05-27 18:21:56 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
2024-05-27 18:21:56 <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
2024-05-27 18:21:56 <meta name="robots" content="noindex, nofollow" />
2024-05-27 18:21:56 <meta name="viewport" content="width=device-width,initial-scale=1" />
2024-05-27 18:21:56 <link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" />
2024-05-27 18:21:56 <!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" /><![endif]-->
2024-05-27 18:21:56 <style>body{margin:0;padding:0}</style>
2024-05-27 18:21:56 
2024-05-27 18:21:56 
2024-05-27 18:21:56 <!--[if gte IE 10]><!-->
2024-05-27 18:21:56 <script>
2024-05-27 18:21:56   if (!navigator.cookieEnabled) {
2024-05-27 18:21:56     window.addEventListener('DOMContentLoaded', function () {
2024-05-27 18:21:56       var cookieEl = document.getElementById('cookie-alert');
2024-05-27 18:21:56       cookieEl.style.display = 'block';
2024-05-27 18:21:56     })
2024-05-27 18:21:56   }
2024-05-27 18:21:56 </script>
2024-05-27 18:21:56 <!--<![endif]-->
2024-05-27 18:21:56 
2024-05-27 18:21:56 
2024-05-27 18:21:56 </head>
2024-05-27 18:21:56 <body>
2024-05-27 18:21:56   <div id="cf-wrapper">
2024-05-27 18:21:56     <div class="cf-alert cf-alert-error cf-cookie-error" id="cookie-alert" data-translate="enable_cookies">Please enable cookies.</div>
2024-05-27 18:21:56     <div id="cf-error-details" class="cf-error-details-wrapper">
2024-05-27 18:21:56       <div class="cf-wrapper cf-header cf-error-overview">
2024-05-27 18:21:56         <h1 data-translate="block_headline">Sorry, you have been blocked</h1>
2024-05-27 18:21:56         <h2 class="cf-subheadline"><span data-translate="unable_to_access">You are unable to access</span> groq.com</h2>
2024-05-27 18:21:56       </div><!-- /.header -->
2024-05-27 18:21:56 
2024-05-27 18:21:56       <div class="cf-section cf-highlight">
2024-05-27 18:21:56         <div class="cf-wrapper">
2024-05-27 18:21:56           <div class="cf-screenshot-container cf-screenshot-full">
2024-05-27 18:21:56             
2024-05-27 18:21:56               <span class="cf-no-screenshot error"></span>
2024-05-27 18:21:56             
2024-05-27 18:21:56           </div>
2024-05-27 18:21:56         </div>
2024-05-27 18:21:56       </div><!-- /.captcha-container -->
2024-05-27 18:21:56 
2024-05-27 18:21:56       <div class="cf-section cf-wrapper">
2024-05-27 18:21:56         <div class="cf-columns two">
2024-05-27 18:21:56           <div class="cf-column">
2024-05-27 18:21:56             <h2 data-translate="blocked_why_headline">Why have I been blocked?</h2>
2024-05-27 18:21:56 
2024-05-27 18:21:56             <p data-translate="blocked_why_detail">This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.</p>
2024-05-27 18:21:56           </div>
2024-05-27 18:21:56 
2024-05-27 18:21:56           <div class="cf-column">
2024-05-27 18:21:56             <h2 data-translate="blocked_resolve_headline">What can I do to resolve this?</h2>
2024-05-27 18:21:56 
2024-05-27 18:21:56             <p data-translate="blocked_resolve_detail">You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.</p>
2024-05-27 18:21:56           </div>
2024-05-27 18:21:56         </div>
2024-05-27 18:21:56       </div><!-- /.section -->
2024-05-27 18:21:56 
2024-05-27 18:21:56       <div class="cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300">
2024-05-27 18:21:56   <p class="text-13">
2024-05-27 18:21:56     <span class="cf-footer-item sm:block sm:mb-1">Cloudflare Ray ID: <strong class="font-semibold">88a547ea49d17699</strong></span>
2024-05-27 18:21:56     <span class="cf-footer-separator sm:hidden">&bull;</span>
2024-05-27 18:21:56     <span id="cf-footer-item-ip" class="cf-footer-item hidden sm:block sm:mb-1">
2024-05-27 18:21:56       Your IP:
2024-05-27 18:21:56       <button type="button" id="cf-footer-ip-reveal" class="cf-footer-ip-reveal-btn">Click to reveal</button>
2024-05-27 18:21:56       <span class="hidden" id="cf-footer-ip">120.197.107.98</span>
2024-05-27 18:21:56       <span class="cf-footer-separator sm:hidden">&bull;</span>
2024-05-27 18:21:56     </span>
2024-05-27 18:21:56     <span class="cf-footer-item sm:block sm:mb-1"><span>Performance &amp; security by</span> <a rel="noopener noreferrer" href="https://www.cloudflare.com/5xx-error-landing" id="brand_link" target="_blank">Cloudflare</a></span>
2024-05-27 18:21:56     
2024-05-27 18:21:56   </p>
2024-05-27 18:21:56   <script>(function(){function d(){var b=a.getElementById("cf-footer-item-ip"),c=a.getElementById("cf-footer-ip-reveal");b&&"classList"in b&&(b.classList.remove("hidden"),c.addEventListener("click",function(){c.classList.add("hidden");a.getElementById("cf-footer-ip").classList.remove("hidden")}))}var a=document;document.addEventListener&&a.addEventListener("DOMContentLoaded",d)})();</script>
2024-05-27 18:21:56 </div><!-- /.error-footer -->
2024-05-27 18:21:56 
2024-05-27 18:21:56 
2024-05-27 18:21:56     </div><!-- /#cf-error-details -->
2024-05-27 18:21:56   </div><!-- /#cf-wrapper -->
2024-05-27 18:21:56 
2024-05-27 18:21:56   <script>
2024-05-27 18:21:56   window._cf_translation = {};
2024-05-27 18:21:56   
2024-05-27 18:21:56   
2024-05-27 18:21:56 </script>
2024-05-27 18:21:56 
2024-05-27 18:21:56 </body>
2024-05-27 18:21:56 </html>
2024-05-27 18:21:56 Traceback (most recent call last):
2024-05-27 18:21:56   File "/app/openui/server.py", line 358, in get_groq_models
2024-05-27 18:21:56     return (await groq.models.list()).data
2024-05-27 18:21:56             ^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:21:56   File "/venv/lib/python3.12/site-packages/openai/_base_client.py", line 270, in _get_page
2024-05-27 18:21:56     return await self._client.request(self._page_cls, self._options)
2024-05-27 18:21:56            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:21:56   File "/venv/lib/python3.12/site-packages/openai/_base_client.py", line 1493, in request
2024-05-27 18:21:56     return await self._request(
2024-05-27 18:21:56            ^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:21:56   File "/venv/lib/python3.12/site-packages/openai/_base_client.py", line 1584, in _request
2024-05-27 18:21:56     raise self._make_status_error_from_response(err.response) from None
2024-05-27 18:21:56 openai.PermissionDeniedError: <!DOCTYPE html>
2024-05-27 18:21:56 <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
2024-05-27 18:21:56 <!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
2024-05-27 18:21:56 <!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
2024-05-27 18:21:56 <!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
2024-05-27 18:21:56 <head>
2024-05-27 18:21:56 <title>Attention Required! | Cloudflare</title>
2024-05-27 18:21:56 <meta charset="UTF-8" />
2024-05-27 18:21:56 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
2024-05-27 18:21:56 <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
2024-05-27 18:21:56 <meta name="robots" content="noindex, nofollow" />
2024-05-27 18:21:56 <meta name="viewport" content="width=device-width,initial-scale=1" />
2024-05-27 18:21:56 <link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" />
2024-05-27 18:21:56 <!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" /><![endif]-->
2024-05-27 18:21:56 <style>body{margin:0;padding:0}</style>
2024-05-27 18:21:56 
2024-05-27 18:21:56 
2024-05-27 18:21:56 <!--[if gte IE 10]><!-->
2024-05-27 18:21:56 <script>
2024-05-27 18:21:56   if (!navigator.cookieEnabled) {
2024-05-27 18:21:56     window.addEventListener('DOMContentLoaded', function () {
2024-05-27 18:21:56       var cookieEl = document.getElementById('cookie-alert');
2024-05-27 18:21:56       cookieEl.style.display = 'block';
2024-05-27 18:21:56     })
2024-05-27 18:21:56   }
2024-05-27 18:21:56 </script>
2024-05-27 18:21:56 <!--<![endif]-->
2024-05-27 18:21:56 
2024-05-27 18:21:56 
2024-05-27 18:21:56 </head>
2024-05-27 18:21:56 <body>
2024-05-27 18:21:56   <div id="cf-wrapper">
2024-05-27 18:21:56     <div class="cf-alert cf-alert-error cf-cookie-error" id="cookie-alert" data-translate="enable_cookies">Please enable cookies.</div>
2024-05-27 18:21:56     <div id="cf-error-details" class="cf-error-details-wrapper">
2024-05-27 18:21:56       <div class="cf-wrapper cf-header cf-error-overview">
2024-05-27 18:21:56         <h1 data-translate="block_headline">Sorry, you have been blocked</h1>
2024-05-27 18:21:56         <h2 class="cf-subheadline"><span data-translate="unable_to_access">You are unable to access</span> groq.com</h2>
2024-05-27 18:21:56       </div><!-- /.header -->
2024-05-27 18:21:56 
2024-05-27 18:21:56       <div class="cf-section cf-highlight">
2024-05-27 18:21:56         <div class="cf-wrapper">
2024-05-27 18:21:56           <div class="cf-screenshot-container cf-screenshot-full">
2024-05-27 18:21:56             
2024-05-27 18:21:56               <span class="cf-no-screenshot error"></span>
2024-05-27 18:21:56             
2024-05-27 18:21:56           </div>
2024-05-27 18:21:56         </div>
2024-05-27 18:21:56       </div><!-- /.captcha-container -->
2024-05-27 18:21:56 
2024-05-27 18:21:56       <div class="cf-section cf-wrapper">
2024-05-27 18:21:56         <div class="cf-columns two">
2024-05-27 18:21:56           <div class="cf-column">
2024-05-27 18:21:56             <h2 data-translate="blocked_why_headline">Why have I been blocked?</h2>
2024-05-27 18:21:56 
2024-05-27 18:21:56             <p data-translate="blocked_why_detail">This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.</p>
2024-05-27 18:21:56           </div>
2024-05-27 18:21:56 
2024-05-27 18:21:56           <div class="cf-column">
2024-05-27 18:21:56             <h2 data-translate="blocked_resolve_headline">What can I do to resolve this?</h2>
2024-05-27 18:21:56 
2024-05-27 18:21:56             <p data-translate="blocked_resolve_detail">You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.</p>
2024-05-27 18:21:56           </div>
2024-05-27 18:21:56         </div>
2024-05-27 18:21:56       </div><!-- /.section -->
2024-05-27 18:21:56 
2024-05-27 18:21:56       <div class="cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300">
2024-05-27 18:21:56   <p class="text-13">
2024-05-27 18:21:56     <span class="cf-footer-item sm:block sm:mb-1">Cloudflare Ray ID: <strong class="font-semibold">88a547ea49d17699</strong></span>
2024-05-27 18:21:56     <span class="cf-footer-separator sm:hidden">&bull;</span>
2024-05-27 18:21:56     <span id="cf-footer-item-ip" class="cf-footer-item hidden sm:block sm:mb-1">
2024-05-27 18:21:56       Your IP:
2024-05-27 18:21:56       <button type="button" id="cf-footer-ip-reveal" class="cf-footer-ip-reveal-btn">Click to reveal</button>
2024-05-27 18:21:56       <span class="hidden" id="cf-footer-ip">120.197.107.98</span>
2024-05-27 18:21:56       <span class="cf-footer-separator sm:hidden">&bull;</span>
2024-05-27 18:21:56     </span>
2024-05-27 18:21:56     <span class="cf-footer-item sm:block sm:mb-1"><span>Performance &amp; security by</span> <a rel="noopener noreferrer" href="https://www.cloudflare.com/5xx-error-landing" id="brand_link" target="_blank">Cloudflare</a></span>
2024-05-27 18:21:56     
2024-05-27 18:21:56   </p>
2024-05-27 18:21:56   <script>(function(){function d(){var b=a.getElementById("cf-footer-item-ip"),c=a.getElementById("cf-footer-ip-reveal");b&&"classList"in b&&(b.classList.remove("hidden"),c.addEventListener("click",function(){c.classList.add("hidden");a.getElementById("cf-footer-ip").classList.remove("hidden")}))}var a=document;document.addEventListener&&a.addEventListener("DOMContentLoaded",d)})();</script>
2024-05-27 18:21:56 </div><!-- /.error-footer -->
2024-05-27 18:21:56 
2024-05-27 18:21:56 
2024-05-27 18:21:56     </div><!-- /#cf-error-details -->
2024-05-27 18:21:56   </div><!-- /#cf-wrapper -->
2024-05-27 18:21:56 
2024-05-27 18:21:56   <script>
2024-05-27 18:21:56   window._cf_translation = {};
2024-05-27 18:21:56   
2024-05-27 18:21:56   
2024-05-27 18:21:56 </script>
2024-05-27 18:21:56 
2024-05-27 18:21:56 </body>
2024-05-27 18:21:56 </html>
2024-05-27 18:22:13 INFO (uvicorn.access):  192.168.65.1:29757 - "GET /v1/models HTTP/1.1" 200
2024-05-27 18:22:19 INFO (uvicorn.access):  192.168.65.1:29758 - "GET /ai/K3dhavZKb5pn_aU99W7xa HTTP/1.1" 200
2024-05-27 18:22:20 INFO (uvicorn.access):  192.168.65.1:29758 - "GET /v1/session HTTP/1.1" 200
2024-05-27 18:22:20 ERROR (openui):  Ollama Error: Request URL is missing an 'http://' or 'https://' protocol.
2024-05-27 18:22:20 Traceback (most recent call last):
2024-05-27 18:22:20   File "/venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
2024-05-27 18:22:20     yield
2024-05-27 18:22:20   File "/venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 373, in handle_async_request
2024-05-27 18:22:20     resp = await self._pool.handle_async_request(req)
2024-05-27 18:22:20            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:22:20   File "/venv/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 167, in handle_async_request
2024-05-27 18:22:20     raise UnsupportedProtocol(
2024-05-27 18:22:20 httpcore.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol.
2024-05-27 18:22:20 
2024-05-27 18:22:20 The above exception was the direct cause of the following exception:
2024-05-27 18:22:20 
2024-05-27 18:22:20 Traceback (most recent call last):
2024-05-27 18:22:20   File "/app/openui/server.py", line 351, in get_ollama_models
2024-05-27 18:22:20     return (await ollama.list())["models"]
2024-05-27 18:22:20             ^^^^^^^^^^^^^^^^^^^
2024-05-27 18:22:20   File "/venv/lib/python3.12/site-packages/ollama/_client.py", line 621, in list
2024-05-27 18:22:20     response = await self._request('GET', '/api/tags')
2024-05-27 18:22:20                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:22:20   File "/venv/lib/python3.12/site-packages/ollama/_client.py", line 345, in _request
2024-05-27 18:22:20     response = await self._client.request(method, url, **kwargs)
2024-05-27 18:22:20                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:22:20   File "/venv/lib/python3.12/site-packages/httpx/_client.py", line 1574, in request
2024-05-27 18:22:20     return await self.send(request, auth=auth, follow_redirects=follow_redirects)
2024-05-27 18:22:20            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:22:20   File "/venv/lib/python3.12/site-packages/httpx/_client.py", line 1661, in send
2024-05-27 18:22:20     response = await self._send_handling_auth(
2024-05-27 18:22:20                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:22:20   File "/venv/lib/python3.12/site-packages/httpx/_client.py", line 1689, in _send_handling_auth
2024-05-27 18:22:20     response = await self._send_handling_redirects(
2024-05-27 18:22:20                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:22:20   File "/venv/lib/python3.12/site-packages/httpx/_client.py", line 1726, in _send_handling_redirects
2024-05-27 18:22:20     response = await self._send_single_request(request)
2024-05-27 18:22:20                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:22:20   File "/venv/lib/python3.12/site-packages/httpx/_client.py", line 1763, in _send_single_request
2024-05-27 18:22:20     response = await transport.handle_async_request(request)
2024-05-27 18:22:20                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:22:20   File "/venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 372, in handle_async_request
2024-05-27 18:22:20     with map_httpcore_exceptions():
2024-05-27 18:22:20   File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
2024-05-27 18:22:20     self.gen.throw(value)
2024-05-27 18:22:20   File "/venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
2024-05-27 18:22:20     raise mapped_exc(message) from exc
2024-05-27 18:22:20 httpx.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol.
2024-05-27 18:22:20 ERROR (openui):  Groq Error: <!DOCTYPE html>
2024-05-27 18:22:20 <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
2024-05-27 18:22:20 <!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
2024-05-27 18:22:20 <!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
2024-05-27 18:22:20 <!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
2024-05-27 18:22:20 <head>
2024-05-27 18:22:20 <title>Attention Required! | Cloudflare</title>
2024-05-27 18:22:20 <meta charset="UTF-8" />
2024-05-27 18:22:20 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
2024-05-27 18:22:20 <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
2024-05-27 18:22:20 <meta name="robots" content="noindex, nofollow" />
2024-05-27 18:22:20 <meta name="viewport" content="width=device-width,initial-scale=1" />
2024-05-27 18:22:20 <link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" />
2024-05-27 18:22:20 <!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" /><![endif]-->
2024-05-27 18:22:20 <style>body{margin:0;padding:0}</style>
2024-05-27 18:22:20 
2024-05-27 18:22:20 
2024-05-27 18:22:20 <!--[if gte IE 10]><!-->
2024-05-27 18:22:20 <script>
2024-05-27 18:22:20   if (!navigator.cookieEnabled) {
2024-05-27 18:22:20     window.addEventListener('DOMContentLoaded', function () {
2024-05-27 18:22:20       var cookieEl = document.getElementById('cookie-alert');
2024-05-27 18:22:20       cookieEl.style.display = 'block';
2024-05-27 18:22:20     })
2024-05-27 18:22:20   }
2024-05-27 18:22:20 </script>
2024-05-27 18:22:20 <!--<![endif]-->
2024-05-27 18:22:20 
2024-05-27 18:22:20 
2024-05-27 18:22:20 </head>
2024-05-27 18:22:20 <body>
2024-05-27 18:22:20   <div id="cf-wrapper">
2024-05-27 18:22:20     <div class="cf-alert cf-alert-error cf-cookie-error" id="cookie-alert" data-translate="enable_cookies">Please enable cookies.</div>
2024-05-27 18:22:20     <div id="cf-error-details" class="cf-error-details-wrapper">
2024-05-27 18:22:20       <div class="cf-wrapper cf-header cf-error-overview">
2024-05-27 18:22:20         <h1 data-translate="block_headline">Sorry, you have been blocked</h1>
2024-05-27 18:22:20         <h2 class="cf-subheadline"><span data-translate="unable_to_access">You are unable to access</span> groq.com</h2>
2024-05-27 18:22:20       </div><!-- /.header -->
2024-05-27 18:22:20 
2024-05-27 18:22:20       <div class="cf-section cf-highlight">
2024-05-27 18:22:20         <div class="cf-wrapper">
2024-05-27 18:22:20           <div class="cf-screenshot-container cf-screenshot-full">
2024-05-27 18:22:20             
2024-05-27 18:22:20               <span class="cf-no-screenshot error"></span>
2024-05-27 18:22:20             
2024-05-27 18:22:20           </div>
2024-05-27 18:22:20         </div>
2024-05-27 18:22:20       </div><!-- /.captcha-container -->
2024-05-27 18:22:20 
2024-05-27 18:22:20       <div class="cf-section cf-wrapper">
2024-05-27 18:22:20         <div class="cf-columns two">
2024-05-27 18:22:20           <div class="cf-column">
2024-05-27 18:22:20             <h2 data-translate="blocked_why_headline">Why have I been blocked?</h2>
2024-05-27 18:22:20 
2024-05-27 18:22:20             <p data-translate="blocked_why_detail">This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.</p>
2024-05-27 18:22:20           </div>
2024-05-27 18:22:20 
2024-05-27 18:22:20           <div class="cf-column">
2024-05-27 18:22:20             <h2 data-translate="blocked_resolve_headline">What can I do to resolve this?</h2>
2024-05-27 18:22:20 
2024-05-27 18:22:20             <p data-translate="blocked_resolve_detail">You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.</p>
2024-05-27 18:22:20           </div>
2024-05-27 18:22:20         </div>
2024-05-27 18:22:20       </div><!-- /.section -->
2024-05-27 18:22:20 
2024-05-27 18:22:20       <div class="cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300">
2024-05-27 18:22:20   <p class="text-13">
2024-05-27 18:22:20     <span class="cf-footer-item sm:block sm:mb-1">Cloudflare Ray ID: <strong class="font-semibold">88a54884dfb0c39f</strong></span>
2024-05-27 18:22:20     <span class="cf-footer-separator sm:hidden">&bull;</span>
2024-05-27 18:22:20     <span id="cf-footer-item-ip" class="cf-footer-item hidden sm:block sm:mb-1">
2024-05-27 18:22:20       Your IP:
2024-05-27 18:22:20       <button type="button" id="cf-footer-ip-reveal" class="cf-footer-ip-reveal-btn">Click to reveal</button>
2024-05-27 18:22:20       <span class="hidden" id="cf-footer-ip">183.237.254.194</span>
2024-05-27 18:22:20       <span class="cf-footer-separator sm:hidden">&bull;</span>
2024-05-27 18:22:20     </span>
2024-05-27 18:22:20     <span class="cf-footer-item sm:block sm:mb-1"><span>Performance &amp; security by</span> <a rel="noopener noreferrer" href="https://www.cloudflare.com/5xx-error-landing" id="brand_link" target="_blank">Cloudflare</a></span>
2024-05-27 18:22:20     
2024-05-27 18:22:20   </p>
2024-05-27 18:22:20   <script>(function(){function d(){var b=a.getElementById("cf-footer-item-ip"),c=a.getElementById("cf-footer-ip-reveal");b&&"classList"in b&&(b.classList.remove("hidden"),c.addEventListener("click",function(){c.classList.add("hidden");a.getElementById("cf-footer-ip").classList.remove("hidden")}))}var a=document;document.addEventListener&&a.addEventListener("DOMContentLoaded",d)})();</script>
2024-05-27 18:22:20 </div><!-- /.error-footer -->
2024-05-27 18:22:20 
2024-05-27 18:22:20 
2024-05-27 18:22:20     </div><!-- /#cf-error-details -->
2024-05-27 18:22:20   </div><!-- /#cf-wrapper -->
2024-05-27 18:22:20 
2024-05-27 18:22:20   <script>
2024-05-27 18:22:20   window._cf_translation = {};
2024-05-27 18:22:20   
2024-05-27 18:22:20   
2024-05-27 18:22:20 </script>
2024-05-27 18:22:20 
2024-05-27 18:22:20 </body>
2024-05-27 18:22:20 </html>
2024-05-27 18:22:20 Traceback (most recent call last):
2024-05-27 18:22:20   File "/app/openui/server.py", line 358, in get_groq_models
2024-05-27 18:22:20     return (await groq.models.list()).data
2024-05-27 18:22:20             ^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:22:20   File "/venv/lib/python3.12/site-packages/openai/_base_client.py", line 270, in _get_page
2024-05-27 18:22:20     return await self._client.request(self._page_cls, self._options)
2024-05-27 18:22:20            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:22:20   File "/venv/lib/python3.12/site-packages/openai/_base_client.py", line 1493, in request
2024-05-27 18:22:20     return await self._request(
2024-05-27 18:22:20            ^^^^^^^^^^^^^^^^^^^^
2024-05-27 18:22:20   File "/venv/lib/python3.12/site-packages/openai/_base_client.py", line 1584, in _request
2024-05-27 18:22:20     raise self._make_status_error_from_response(err.response) from None
2024-05-27 18:22:20 openai.PermissionDeniedError: <!DOCTYPE html>
2024-05-27 18:22:20 <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
2024-05-27 18:22:20 <!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
2024-05-27 18:22:20 <!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
2024-05-27 18:22:20 <!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
2024-05-27 18:22:20 <head>
2024-05-27 18:22:20 <title>Attention Required! | Cloudflare</title>
2024-05-27 18:22:20 <meta charset="UTF-8" />
2024-05-27 18:22:20 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
2024-05-27 18:22:20 <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
2024-05-27 18:22:20 <meta name="robots" content="noindex, nofollow" />
2024-05-27 18:22:20 <meta name="viewport" content="width=device-width,initial-scale=1" />
2024-05-27 18:22:20 <link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" />
2024-05-27 18:22:20 <!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" /><![endif]-->
2024-05-27 18:22:20 <style>body{margin:0;padding:0}</style>
2024-05-27 18:22:20 
2024-05-27 18:22:20 
2024-05-27 18:22:20 <!--[if gte IE 10]><!-->
2024-05-27 18:22:20 <script>
2024-05-27 18:22:20   if (!navigator.cookieEnabled) {
2024-05-27 18:22:20     window.addEventListener('DOMContentLoaded', function () {
2024-05-27 18:22:20       var cookieEl = document.getElementById('cookie-alert');
2024-05-27 18:22:20       cookieEl.style.display = 'block';
2024-05-27 18:22:20     })
2024-05-27 18:22:20   }
2024-05-27 18:22:20 </script>
2024-05-27 18:22:20 <!--<![endif]-->
2024-05-27 18:22:20 
2024-05-27 18:22:20 
2024-05-27 18:22:20 </head>
2024-05-27 18:22:20 <body>
2024-05-27 18:22:20   <div id="cf-wrapper">
2024-05-27 18:22:20     <div class="cf-alert cf-alert-error cf-cookie-error" id="cookie-alert" data-translate="enable_cookies">Please enable cookies.</div>
2024-05-27 18:22:20     <div id="cf-error-details" class="cf-error-details-wrapper">
2024-05-27 18:22:20       <div class="cf-wrapper cf-header cf-error-overview">
2024-05-27 18:22:20         <h1 data-translate="block_headline">Sorry, you have been blocked</h1>
2024-05-27 18:22:20         <h2 class="cf-subheadline"><span data-translate="unable_to_access">You are unable to access</span> groq.com</h2>
2024-05-27 18:22:20       </div><!-- /.header -->
2024-05-27 18:22:20 
2024-05-27 18:22:20       <div class="cf-section cf-highlight">
2024-05-27 18:22:20         <div class="cf-wrapper">
2024-05-27 18:22:20           <div class="cf-screenshot-container cf-screenshot-full">
2024-05-27 18:22:20             
2024-05-27 18:22:20               <span class="cf-no-screenshot error"></span>
2024-05-27 18:22:20             
2024-05-27 18:22:20           </div>
2024-05-27 18:22:20         </div>
2024-05-27 18:22:20       </div><!-- /.captcha-container -->
2024-05-27 18:22:20 
2024-05-27 18:22:20       <div class="cf-section cf-wrapper">
2024-05-27 18:22:20         <div class="cf-columns two">
2024-05-27 18:22:20           <div class="cf-column">
2024-05-27 18:22:20             <h2 data-translate="blocked_why_headline">Why have I been blocked?</h2>
2024-05-27 18:22:20 
2024-05-27 18:22:20             <p data-translate="blocked_why_detail">This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.</p>
2024-05-27 18:22:20           </div>
2024-05-27 18:22:20 
2024-05-27 18:22:20           <div class="cf-column">
2024-05-27 18:22:20             <h2 data-translate="blocked_resolve_headline">What can I do to resolve this?</h2>
2024-05-27 18:22:20 
2024-05-27 18:22:20             <p data-translate="blocked_resolve_detail">You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.</p>
2024-05-27 18:22:20           </div>
2024-05-27 18:22:20         </div>
2024-05-27 18:22:20       </div><!-- /.section -->
2024-05-27 18:22:20 
2024-05-27 18:22:20       <div class="cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300">
2024-05-27 18:22:20   <p class="text-13">
2024-05-27 18:22:20     <span class="cf-footer-item sm:block sm:mb-1">Cloudflare Ray ID: <strong class="font-semibold">88a54884dfb0c39f</strong></span>
2024-05-27 18:22:20     <span class="cf-footer-separator sm:hidden">&bull;</span>
2024-05-27 18:22:20     <span id="cf-footer-item-ip" class="cf-footer-item hidden sm:block sm:mb-1">
2024-05-27 18:22:20       Your IP:
2024-05-27 18:22:20       <button type="button" id="cf-footer-ip-reveal" class="cf-footer-ip-reveal-btn">Click to reveal</button>
2024-05-27 18:22:20       <span class="hidden" id="cf-footer-ip">183.237.254.194</span>
2024-05-27 18:22:20       <span class="cf-footer-separator sm:hidden">&bull;</span>
2024-05-27 18:22:20     </span>
2024-05-27 18:22:20     <span class="cf-footer-item sm:block sm:mb-1"><span>Performance &amp; security by</span> <a rel="noopener noreferrer" href="https://www.cloudflare.com/5xx-error-landing" id="brand_link" target="_blank">Cloudflare</a></span>
2024-05-27 18:22:20     
2024-05-27 18:22:20   </p>
2024-05-27 18:22:20   <script>(function(){function d(){var b=a.getElementById("cf-footer-item-ip"),c=a.getElementById("cf-footer-ip-reveal");b&&"classList"in b&&(b.classList.remove("hidden"),c.addEventListener("click",function(){c.classList.add("hidden");a.getElementById("cf-footer-ip").classList.remove("hidden")}))}var a=document;document.addEventListener&&a.addEventListener("DOMContentLoaded",d)})();</script>
2024-05-27 18:22:20 </div><!-- /.error-footer -->
2024-05-27 18:22:20 
2024-05-27 18:22:20 
2024-05-27 18:22:20     </div><!-- /#cf-error-details -->
2024-05-27 18:22:20   </div><!-- /#cf-wrapper -->
2024-05-27 18:22:20 
2024-05-27 18:22:20   <script>
2024-05-27 18:22:20   window._cf_translation = {};
2024-05-27 18:22:20   
2024-05-27 18:22:20   
2024-05-27 18:22:20 </script>
2024-05-27 18:22:20 
2024-05-27 18:22:20 </body>
2024-05-27 18:22:20 </html>
2024-05-27 18:22:37 INFO (uvicorn.access):  192.168.65.1:29759 - "GET /v1/models HTTP/1.1" 200

And the model cannot be loaded: image

# ollama list
NAME            ID              SIZE    MODIFIED       
llava:latest    8dd30f6b0cb1    4.7 GB  48 minutes ago
llama3:latest   365c0bd3c000    4.7 GB  2 hours ago
vanpelt commented 5 months ago

The OLLAM_HOST environment variable needs to start with http://