devika icon indicating copy to clipboard operation
devika copied to clipboard

No Reply From Devika

Open GSrinivasKishanLal opened this issue 10 months ago • 15 comments

After setup of Devika in Ubuntu System is done and ran, Getting no reply from Devika form any Model. Response in python console after running devika.py file:

{ "from_devika": false, "message": "Tokens used", "timestamp": "2024-03-27 10:31:30" }

Kindly make a note on this issue I am getting for Devika AI

package_devika_issue

GSrinivasKishanLal avatar Mar 27 '24 07:03 GSrinivasKishanLal

Already created PR , which solves this issue. PR : #190

rajakumar05032000 avatar Mar 27 '24 12:03 rajakumar05032000

@rajakumar05032000 Have the PR merged into main branch already? I pulled but still the same

huangjingcai avatar Mar 28 '24 03:03 huangjingcai

190 pr does not fix issue

axsddlr avatar Mar 28 '24 05:03 axsddlr

@rajakumar05032000 , issue still exist.

sainudheenp avatar Mar 28 '24 06:03 sainudheenp

If the issue still exist, can someone send the full logs and also would like to know which model you are using? ( I have tested well with Ollama & Groq mixtral)

rajakumar05032000 avatar Mar 28 '24 07:03 rajakumar05032000

Those who are facing issues, can you please create a new project in devika UI and and then add your query & check?

Only first prompt in a devika project, yields response from devika and rest of the prompts yield no response from devika..

Unless devika itself asks you question, then only second or consequent prompts will yield response from devika..its a known issue.

So please create a new project in devika UI and check with a prompt..

Recently, tested Again this fix with Chatgpt, Groq, Claude models also, it works fine as expected!

@niazikashif thanks for helping in testing with ChatGPT models.

rajakumar05032000 avatar Mar 28 '24 08:03 rajakumar05032000

for people who are using Groq models, please make sure to add this fix from #193 (which fixes groq client issues, only then it will work) and then try.

rajakumar05032000 avatar Mar 28 '24 08:03 rajakumar05032000

Hello @rajakumar05032000 thank you for your suggestion, once when I tried creating new project in Devika UI also, I am still getting no reply, kindly note the below response, I get and the issue is still existing.

24.03.28 14:37:13: root: INFO : /api/get-messages POST 24.03.28 14:37:13: root: DEBUG : /api/get-messages POST - Response: { "messages": [ { "from_devika": false, "message": "Hello", "timestamp": "2024-03-28 14:36:54" } ] }

GSrinivasKishanLal avatar Mar 28 '24 09:03 GSrinivasKishanLal

Hello @rajakumar05032000 thank you for your suggestion, once when I tried creating new project in Devika UI also, I am still getting no reply, kindly note the below response, I get and the issue is still existing.

24.03.28 14:37:13: root: INFO : /api/get-messages POST 24.03.28 14:37:13: root: DEBUG : /api/get-messages POST - Response: { "messages": [ { "from_devika": false, "message": "Hello", "timestamp": "2024-03-28 14:36:54" } ] }

Can you please send the full log of devika_agent.log file (which is present in logs folder) and also please confirm that whether you had added your API keys in config.toml file..

rajakumar05032000 avatar Mar 28 '24 09:03 rajakumar05032000

Hello @rajakumar05032000 thank you for your suggestion, once when I tried creating new project in Devika UI also, I am still getting no reply, kindly note the below response, I get and the issue is still existing. 24.03.28 14:37:13: root: INFO : /api/get-messages POST 24.03.28 14:37:13: root: DEBUG : /api/get-messages POST - Response: { "messages": [ { "from_devika": false, "message": "Hello", "timestamp": "2024-03-28 14:36:54" } ] }

Can you please send the full log of devika_agent.log file (which is present in logs folder) and also please confirm that whether you had added your API keys in config.toml file..

Sure @rajakumar05032000 , kindly find attachment for the devika_agent.log file and also find given image where the api key is given in hte config.toml file:

config_tom_file_changes devika_agent.log

GSrinivasKishanLal avatar Mar 28 '24 09:03 GSrinivasKishanLal

Hello @rajakumar05032000 thank you for your suggestion, once when I tried creating new project in Devika UI also, I am still getting no reply, kindly note the below response, I get and the issue is still existing. 24.03.28 14:37:13: root: INFO : /api/get-messages POST 24.03.28 14:37:13: root: DEBUG : /api/get-messages POST - Response: { "messages": [ { "from_devika": false, "message": "Hello", "timestamp": "2024-03-28 14:36:54" } ] }

Can you please send the full log of devika_agent.log file (which is present in logs folder) and also please confirm that whether you had added your API keys in config.toml file..

Sure @rajakumar05032000 , kindly find attachment for the devika_agent.log file and also find given image where the api key is given in hte config.toml file:

config_tom_file_changes devika_agent.log

Kindly, Can you please share devika_prompts.log file( which is present in same logs directory).

rajakumar05032000 avatar Mar 28 '24 10:03 rajakumar05032000

Hello @rajakumar05032000 thank you for your suggestion, once when I tried creating new project in Devika UI also, I am still getting no reply, kindly note the below response, I get and the issue is still existing. 24.03.28 14:37:13: root: INFO : /api/get-messages POST 24.03.28 14:37:13: root: DEBUG : /api/get-messages POST - Response: { "messages": [ { "from_devika": false, "message": "Hello", "timestamp": "2024-03-28 14:36:54" } ] }

Can you please send the full log of devika_agent.log file (which is present in logs folder) and also please confirm that whether you had added your API keys in config.toml file..

Sure @rajakumar05032000 , kindly find attachment for the devika_agent.log file and also find given image where the api key is given in hte config.toml file: config_tom_file_changes devika_agent.log

Kindly, Can you please share devika_prompts.log file( which is present in same logs directory).

Yes, Sure, Kindly find the prompts file below:

devika_prompts.log

GSrinivasKishanLal avatar Mar 28 '24 10:03 GSrinivasKishanLal

Hello @rajakumar05032000 thank you for your suggestion, once when I tried creating new project in Devika UI also, I am still getting no reply, kindly note the below response, I get and the issue is still existing. 24.03.28 14:37:13: root: INFO : /api/get-messages POST 24.03.28 14:37:13: root: DEBUG : /api/get-messages POST - Response: { "messages": [ { "from_devika": false, "message": "Hello", "timestamp": "2024-03-28 14:36:54" } ] }

Can you please send the full log of devika_agent.log file (which is present in logs folder) and also please confirm that whether you had added your API keys in config.toml file..

Sure @rajakumar05032000 , kindly find attachment for the devika_agent.log file and also find given image where the api key is given in hte config.toml file: config_tom_file_changes devika_agent.log

Kindly, Can you please share devika_prompts.log file( which is present in same logs directory).

Yes, Sure, Kindly find the prompts file below:

devika_prompts.log

Thanks for sharing! Devika is not communicating with your LLM for some reasons. If possible can you please try with groq model(which is free now for now & can be accessed easily just by google sign-in.).

-> Kindly please do pull the latest changes ( as few changes got merged a hr ago) and restart devika.py file & UI. -> Kindly also update config.toml file with new API key. -> Create a new devika project and try with some command like "create a flappy bird game" or something like that , instead of simple "Hi" message.

Thanks for your patience! Looking forward to hear from you soon!

rajakumar05032000 avatar Mar 28 '24 11:03 rajakumar05032000

create a flappy bird game

Thank you @rajakumar05032000, after creating a groq key and using it, I am getting reply from Devika for GORQ- llama2 LLM in my new project.

Just a kind reminder that when I pulled the latest changes, the "config.toml" file was missing, I replaced it in my local with my existing one, kindly check it, otherwise the Devika response for gorq LLM is replying.

GSrinivasKishanLal avatar Mar 28 '24 11:03 GSrinivasKishanLal

create a flappy bird game

Thank you @rajakumar05032000, after creating a groq key and using it, I am getting reply from Devika for GORQ- llama2 LLM in my new project.

Just a kind reminder that when I pulled the latest changes, the "config.toml" file was missing, I replaced it in my local with my existing one, kindly check it, otherwise the Devika response for gorq LLM is replying.

Thanks for your patience & I am glad that I was able to solve your issue.

-> rename of config.toml to sample.config.toml was an intended change. Because with config.toml file, developers can accidentally push their API keys along with code.

Btw, If your issue got resolved, feel free to close this issue. Thank you !

rajakumar05032000 avatar Mar 28 '24 12:03 rajakumar05032000

fetch the latest changes. already fixed

ARajgor avatar Apr 03 '24 19:04 ARajgor