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
18.47k stars 2.39k forks source link

as installed devika repository and installed all requirement but still devika is not responding to #424

Closed Mlbadboy closed 6 months ago

Mlbadboy commented 7 months ago

Describe the bug A clear and concise description of what the bug is.

no response from devika even after giving all api and the terminal is showing waitng

MKPTechnicals commented 7 months ago

Can you check what server log says?

arsaboo commented 7 months ago

Seeing the same....here are the logs:

24.04.11 10:28:56: root: INFO   : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'sdafd', 'timestamp': '2024-04-11 10:28:56'}}
24.04.11 10:28:57: root: INFO   : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'asdfasdf', 'timestamp': '2024-04-11 10:28:57'}}
24.04.11 10:28:58: root: INFO   : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'asdf', 'timestamp': '2024-04-11 10:28:58'}}
24.04.11 10:28:58: root: INFO   : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'asdf', 'timestamp': '2024-04-11 10:28:58'}}

Basically, there is no response to any message

MKPTechnicals commented 7 months ago

Can you provide with complete logs from starting server or screenshot of the same?

MKPTechnicals commented 7 months ago

I'm asking for the messages displayed in server cmd.

arsaboo commented 7 months ago

There is not much besides these:

24.04.11 10:27:18: root: INFO   : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'hello', 'timestamp': '2024-04-11 10:27:18'}}
24.04.11 10:28:16: root: INFO   : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'create a calculator app', 'timestamp': '2024-04-11 10:28:16'}}
24.04.11 10:28:28: root: INFO   : /api/settings GET
24.04.11 10:28:28: root: DEBUG  : /api/settings GET - Response: {"settings":{"API_ENDPOINTS":{"BING":"https://api.bing.microsoft.com/v7.0/search","OLLAMA":"http://192.168.2.162:11434"},"API_KEYS":{"BING":"REDACTED","OPENAI":"REDACTED"},"LOGGING":{"LOG_PROMPTS":"false","LOG_REST_API":"true"},"STORAGE":{"LOGS_DIR":"data/logs","PDFS_DIR":"data/pdfs","PROJECTS_DIR":"data/projects","REPOS_DIR":"data/repos","SCREENSHOTS_DIR":"data/screenshots","SQLITE_DB":"data/db/devika.db"}}}

Socket connected ::  {'data': 'frontend connected!'}
24.04.11 10:28:41: root: INFO   : SOCKET socket_response MESSAGE: {'data': 'Server Connected'}
24.04.11 10:28:41: root: INFO   : /api/data GET
24.04.11 10:28:41: root: DEBUG  : /api/data GET - Response: {"models":{"CLAUDE":[["Claude 3 Opus","claude-3-opus-20240229"],["Claude 3 Sonnet","claude-3-sonnet-20240229"],["Claude 3 Haiku","claude-3-haiku-20240307"]],"GOOGLE":[["Gemini 1.0 Pro","gemini-pro"]],"GROQ":[["GROQ Mixtral","mixtral-8x7b-32768"],["GROQ LLAMA2 70B","llama2-70b-4096"],["GROQ GEMMA 7B IT","gemma-7b-it"]],"MISTRAL":[["Mistral 7b","open-mistral-7b"],["Mistral 8x7b","open-mixtral-8x7b"],["Mistral Medium","mistral-medium-latest"],["Mistral Small","mistral-small-latest"],["Mistral Large","mistral-large-latest"]],"OLLAMA":[["codebooga","codebooga:latest"],["codellama","codellama:latest"],["command-r","command-r:35b"],["deepseek-coder","deepseek-coder:33b"],["dolphin-mixtral","dolphin-mixtral:latest"],["gemma","gemma:latest"],["llama2","llama2:70b"],["llama2","llama2:latest"],["llama2-uncensored","llama2-uncensored:latest"],["llava","llava:latest"],["mxbai-embed-large","mxbai-embed-large:latest"],["nomic-embed-text","nomic-embed-text:latest"],["nous-hermes2","nous-hermes2:latest"],["qwen","qwen:32b"],["qwen","qwen:72b"],["starling-lm","starling-lm:latest"]],"OPENAI":[["GPT-4 Turbo","gpt-4-0125-preview"],["GPT-3.5","gpt-3.5-turbo-0125"]]},"projects":["temp"],"search_engines":["Bing","Google","DuckDuckGo"]}

24.04.11 10:28:41: root: INFO   : /api/get-agent-state POST
24.04.11 10:28:41: root: DEBUG  : /api/get-agent-state POST - Response: {"state":{"agent_is_active":true,"browser_session":{"screenshot":null,"url":null},"completed":false,"internal_monologue":null,"message":null,"step":null,"terminal_session":{"command":null,"output":null,"title":null},"timestamp":"2024-04-11 10:26:55","token_usage":363}}

24.04.11 10:28:56: root: INFO   : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'sdafd', 'timestamp': '2024-04-11 10:28:56'}}
24.04.11 10:28:57: root: INFO   : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'asdfasdf', 'timestamp': '2024-04-11 10:28:57'}}
24.04.11 10:28:58: root: INFO   : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'asdf', 'timestamp': '2024-04-11 10:28:58'}}
24.04.11 10:28:58: root: INFO   : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'asdf', 'timestamp': '2024-04-11 10:28:58'}}
MKPTechnicals commented 7 months ago

Try using bun run dev --host

MKPTechnicals commented 7 months ago

Refer to:

https://github.com/stitionai/devika/issues/409

arsaboo commented 7 months ago

It now works on other computers on the network, but still the same behavior (no response; but no errors in the logs):

24.04.11 17:36:38: root: DEBUG  : /api/get-agent-state POST - Response: {"state":{"agent_is_active":true,"browser_session":{"screenshot":null,"url":null},"completed":false,"internal_monologue":null,"message":null,"step":null,"terminal_session":{"command":null,"output":null,"title":null},"timestamp":"2024-04-11 10:26:55","token_usage":363}}

24.04.11 17:36:47: root: INFO   : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'Hi', 'timestamp': '2024-04-11 17:36:47'}}
24.04.11 17:37:02: root: INFO   : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'hello', 'timestamp': '2024-04-11 17:37:02'}}
volleytech8 commented 7 months ago

everything is working but the terminal is stuck on waiting here are my logs: 24.04.12 04:01:00: root: INFO : Initializing Devika... 24.04.12 04:01:00: root: INFO : Initializing Prerequisites Jobs... 24.04.12 04:01:04: root: INFO : Loading sentence-transformer BERT models... 24.04.12 04:01:11: root: INFO : BERT model loaded successfully. 24.04.12 04:01:13: root: INFO : Ollama available 24.04.12 04:01:14: root: INFO : Devika is up and running! 24.04.12 04:01:26: root: INFO : /api/data GET 24.04.12 04:01:26: root: DEBUG : /api/data GET - Response: {"models":{"CLAUDE":[["Claude 3 Opus","claude-3-opus-20240229"],["Claude 3 Sonnet","claude-3-sonnet-20240229"],["Claude 3 Haiku","claude-3-haiku-20240307"]],"GOOGLE":[["Gemini 1.0 Pro","gemini-pro"]],"GROQ":[["GROQ Mixtral","mixtral-8x7b-32768"],["GROQ LLAMA2 70B","llama2-70b-4096"],["GROQ GEMMA 7B IT","gemma-7b-it"]],"MISTRAL":[["Mistral 7b","open-mistral-7b"],["Mistral 8x7b","open-mixtral-8x7b"],["Mistral Medium","mistral-medium-latest"],["Mistral Small","mistral-small-latest"],["Mistral Large","mistral-large-latest"]],"OLLAMA":[],"OPENAI":[["GPT-4 Turbo","gpt-4-0125-preview"],["GPT-3.5","gpt-3.5-turbo-0125"]]},"projects":["project"],"search_engines":["Bing","Google","DuckDuckGo"]}

24.04.12 04:01:27: root: INFO : /api/get-agent-state POST 24.04.12 04:01:27: root: DEBUG : /api/get-agent-state POST - Response: {"state":null}

Socket connected :: {'data': 'frontend connected!'} 24.04.12 04:01:27: root: INFO : SOCKET socket_response MESSAGE: {'data': 'Server Connected'} 24.04.12 04:01:29: root: INFO : /api/get-agent-state POST 24.04.12 04:01:29: root: DEBUG : /api/get-agent-state POST - Response: {"state":{"agent_is_active":true,"browser_session":{"screenshot":null,"url":null},"completed":false,"internal_monologue":null,"message":null,"step":null,"terminal_session":{"command":null,"output":null,"title":null},"timestamp":"2024-04-12 03:57:23","token_usage":364}}

24.04.12 04:03:01: root: INFO : /api/data GET 24.04.12 04:03:01: root: DEBUG : /api/data GET - Response: {"models":{"CLAUDE":[["Claude 3 Opus","claude-3-opus-20240229"],["Claude 3 Sonnet","claude-3-sonnet-20240229"],["Claude 3 Haiku","claude-3-haiku-20240307"]],"GOOGLE":[["Gemini 1.0 Pro","gemini-pro"]],"GROQ":[["GROQ Mixtral","mixtral-8x7b-32768"],["GROQ LLAMA2 70B","llama2-70b-4096"],["GROQ GEMMA 7B IT","gemma-7b-it"]],"MISTRAL":[["Mistral 7b","open-mistral-7b"],["Mistral 8x7b","open-mixtral-8x7b"],["Mistral Medium","mistral-medium-latest"],["Mistral Small","mistral-small-latest"],["Mistral Large","mistral-large-latest"]],"OLLAMA":[],"OPENAI":[["GPT-4 Turbo","gpt-4-0125-preview"],["GPT-3.5","gpt-3.5-turbo-0125"]]},"projects":["project"],"search_engines":["Bing","Google","DuckDuckGo"]}

24.04.12 04:03:01: root: INFO : /api/get-agent-state POST 24.04.12 04:03:01: root: DEBUG : /api/get-agent-state POST - Response: {"state":null}

Socket connected :: {'data': 'frontend connected!'} 24.04.12 04:03:01: root: INFO : SOCKET socket_response MESSAGE: {'data': 'Server Connected'} 24.04.12 04:03:04: root: INFO : /api/get-agent-state POST 24.04.12 04:03:04: root: DEBUG : /api/get-agent-state POST - Response: {"state":{"agent_is_active":true,"browser_session":{"screenshot":null,"url":null},"completed":false,"internal_monologue":null,"message":null,"step":null,"terminal_session":{"command":null,"output":null,"title":null},"timestamp":"2024-04-12 03:57:23","token_usage":364}}

24.04.12 04:03:11: root: INFO : /api/data GET 24.04.12 04:03:11: root: DEBUG : /api/data GET - Response: {"models":{"CLAUDE":[["Claude 3 Opus","claude-3-opus-20240229"],["Claude 3 Sonnet","claude-3-sonnet-20240229"],["Claude 3 Haiku","claude-3-haiku-20240307"]],"GOOGLE":[["Gemini 1.0 Pro","gemini-pro"]],"GROQ":[["GROQ Mixtral","mixtral-8x7b-32768"],["GROQ LLAMA2 70B","llama2-70b-4096"],["GROQ GEMMA 7B IT","gemma-7b-it"]],"MISTRAL":[["Mistral 7b","open-mistral-7b"],["Mistral 8x7b","open-mixtral-8x7b"],["Mistral Medium","mistral-medium-latest"],["Mistral Small","mistral-small-latest"],["Mistral Large","mistral-large-latest"]],"OLLAMA":[],"OPENAI":[["GPT-4 Turbo","gpt-4-0125-preview"],["GPT-3.5","gpt-3.5-turbo-0125"]]},"projects":["project"],"search_engines":["Bing","Google","DuckDuckGo"]}

Socket connected :: {'data': 'frontend connected!'} 24.04.12 04:03:11: root: INFO : SOCKET socket_response MESSAGE: {'data': 'Server Connected'} 24.04.12 04:03:11: root: INFO : /api/get-agent-state POST 24.04.12 04:03:11: root: DEBUG : /api/get-agent-state POST - Response: {"state":null}

24.04.12 04:05:02: root: INFO : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'python snake game', 'timestamp': '2024-04-12 04:05:02'}}

volleytech8 commented 7 months ago

when i try to bun install, it says: error: moving "tiktoken" to cache dir failed EPERM: Operation not permitted (NtSetInformationFile())

ARajgor commented 6 months ago

you have to wait for some time while LLM generates the output for you. before that, you are sending messaging per second. Also which model are you using.?

arsaboo commented 6 months ago

None of the models are working for me.

ARajgor commented 6 months ago

fixed. fetch the latest changes. for more read the changelog in discord.