stitionai / devika

Devika is an Agentic AI Software Engineer that can understand high-level human instructions, break them down into steps, research relevant information, and write code to achieve the given objective. Devika aims to be a competitive open-source alternative to Devin by Cognition AI.
MIT License
17.96k stars 2.32k forks source link

[Bug]The button“select search engine”and"select models"is not working without ollama config #553

Open linuffe opened 2 months ago

linuffe commented 2 months ago

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

backend devika_webui frontend

Below is my settings:

settings setting2
Polygons1 commented 2 months ago

any frontend console errors?

linuffe commented 2 months ago

image image

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?

linuffe commented 2 months ago

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

Indratejreddy commented 2 months ago

Same for me I tried to check it out but something is wrong I can see internal server error image

ARajgor commented 2 months ago

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.

linuffe commented 1 month ago

image

matichek commented 3 weeks ago

yes, I have the same - if olama is selected before and not active - it will disable selection for those to buttons