Open linuffe opened 2 months ago
any frontend console errors?
It seems that nothing happend in the logs...But the two buttons still cannot work.Do I check the wrong place to see the frontend logs?
But everytime I swith to the home page, here is a Error:
[2024-05-12 21:19:25,883] ERROR in app: Exception on /api/data [GET] Traceback (most recent call last): File "F:\devika-main.venv\Lib\site-packages\flask\app.py", line 1473, in wsgi_app response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\devika-main.venv\Lib\site-packages\flask\app.py", line 882, in full_dispatch_request rv = self.handle_user_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\devika-main.venv\Lib\site-packages\flask_cors\extension.py", line 178, in wrapped_function return cors_after_request(app.make_response(f(args, kwargs))) ^^^^^^^^^^^^^^^^^^ File "F:\devika-main.venv\Lib\site-packages\flask\app.py", line 880, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "F:\devika-main.venv\Lib\site-packages\flask\app.py", line 865, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(view_args) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\devika-main\src\logger.py", line 59, in wrapper response = func(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "F:\devika-main\devika.py", line 59, in data models = LLM().list_models() ^^^^^ File "F:\devika-main\src\llm\llm.py", line 62, in init self.models["OLLAMA"] = [(model["name"].split(":")[0], model["name"]) for model in ollama.models] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not iterable
Same for me I tried to check it out but something is wrong I can see internal server error
you already have the ollama installed in your system.
As per your LOG it says ollama available. can you type ollama
in your system terminal to check it.
yes, I have the same - if olama is selected before and not active - it will disable selection for those to buttons
Describe the bug
Runtime: Python 3.11 Windows 11x64 *I want to run the app using SAAS API only so I didn't intall ollama and relevent localized LLMs After installation, when I open the frontend, I find I can't press the “select search engine”and"select models" button! And the backend just give some errors relating to ollama, I am wondering how to manage it?
How To Reproduce
Steps to reproduce the be
Below is my settings: