devika icon indicating copy to clipboard operation
devika copied to clipboard

Not getting the response from backend - Agent is not getting started.

Open Chinnapani9439 opened this issue 1 year ago • 9 comments

24.03.26 16:51:06: root: DEBUG : /api/model-list GET - Response: {"models":[["Claude 3 Opus","claude-3-opus-20240229"],["Claude 3 Sonnet","claude-3-sonnet-20240229"],["Claude 3 Haiku","claude-3-haiku-20240307"],["GPT-4 Turbo","gpt-4-0125-preview"],["GPT-3.5","gpt-3.5-turbo-0125"]]}

24.03.26 16:51:06: root: INFO : /api/get-agent-state POST 24.03.26 16:51:06: root: DEBUG : /api/get-agent-state POST - Response: {"state":null}

24.03.26 16:51:06: root: INFO : /api/get-messages POST 24.03.26 16:51:06: root: DEBUG : /api/get-messages POST - Response: {"messages":[{"from_devika":false,"message":"Hi","timestamp":"2024-03-26 16:45:06"},{"from_devika":false,"message":"Hello","timestamp":"2024-03-26 16:45:53"}]}

24.03.26 16:51:07: root: INFO : /api/token-usage GET 24.03.26 16:51:07: root: INFO : /api/project-list GET 24.03.26 16:51:07: root: DEBUG : /api/token-usage GET - Response: {"token_usage":0}

24.03.26 16:51:07: root: DEBUG : /api/project-list GET - Response: {"projects":["Test"]}

24.03.26 16:51:07: root: INFO : /api/model-list GET 24.03.26 16:51:07: root: DEBUG : /api/model-list GET - Response: {"models":[["Claude 3 Opus","claude-3-opus-20240229"],["Claude 3 Sonnet","claude-3-sonnet-20240229"],["Claude 3 Haiku","claude-3-haiku-20240307"],["GPT-4 Turbo","gpt-4-0125-preview"],["GPT-3.5","gpt-3.5-turbo-0125"]]}

24.03.26 16:51:07: root: INFO : /api/get-agent-state POST 24.03.26 16:51:07: root: DEBUG : /api/get-agent-state POST - Response: {"state":null}

24.03.26 16:51:07: root: INFO : /api/get-messages POST 24.03.26 16:51:07: root: DEBUG : /api/get-messages POST - Response: {"messages":[{"from_devika":false,"message":"Hi","timestamp":"2024-03-26 16:45:06"},{"from_devika":false,"message":"Hello","timestamp":"2024-03-26 16:45:53"}]}

24.03.26 16:51:08: root: INFO : /api/token-usage GET 24.03.26 16:51:08: root: DEBUG : /api/token-usage GET - Response: {"token_usage":0}

24.03.26 16:51:08: root: INFO : /api/project-list GET 24.03.26 16:51:08: root: DEBUG : /api/project-list GET - Response: {"projects":["Test"]}

24.03.26 16:51:08: root: INFO : /api/model-list GET 24.03.26 16:51:08: root: DEBUG : /api/model-list GET - Response: {"models":[["Claude 3 Opus","claude-3-opus-20240229"],["Claude 3 Sonnet","claude-3-sonnet-20240229"],["Claude 3 Haiku","claude-3-haiku-20240307"],["GPT-4 Turbo","gpt-4-0125-preview"],["GPT-3.5","gpt-3.5-turbo-0125"]]}

24.03.26 16:51:08: root: INFO : /api/get-agent-state POST 24.03.26 16:51:08: root: DEBUG : /api/get-agent-state POST - Response: {"state":null}

24.03.26 16:51:08: root: INFO : /api/get-messages POST 24.03.26 16:51:08: root: DEBUG : /api/get-messages POST - Response: {"messages":[{"from_devika":false,"message":"Hi","timestamp":"2024-03-26 16:45:06"},{"from_devika":false,"message":"Hello","timestamp":"2024-03-26 16:45:53"}]}

Chinnapani9439 avatar Mar 26 '24 11:03 Chinnapani9439

the same

mostafa0658M avatar Mar 26 '24 14:03 mostafa0658M

same error log. ive put in my bing api and openai key, im using WSL2 ubtuntu LTS on windows 11.

YakovAU avatar Mar 26 '24 23:03 YakovAU

Same here, nothing happens

ibndias avatar Mar 27 '24 01:03 ibndias

same.i have set OPENAI_BASE_URL and still nothing reports from devika

PunkSarich avatar Mar 27 '24 01:03 PunkSarich

For now use postman and fire cmd from there flask backend will work , I will look into this issue.

ketangangal avatar Mar 27 '24 03:03 ketangangal

@ketangangal yes. I called the API manually (execute-agent) and it worked.

machinelearningzuu avatar Mar 27 '24 04:03 machinelearningzuu

For those who didnt understand, you can use curl:

curl -X POST -H "Content-Type: application/json" -d '{"prompt":"your prompt here", "base_model":"gpt-4-0125-preview", "project_name":"your Project name here"}' http://localhost:1337/api/execute-agent

YakovAU avatar Mar 27 '24 05:03 YakovAU

same here, running on a Mac. I tried curl, but it didn't work either, get " status: 404,"

KermaniMojtaba avatar Mar 27 '24 10:03 KermaniMojtaba

@KermaniMojtaba did you tried through PostMan. If so share the Request URL and JSON Body here. I solved it by manually executing the API

machinelearningzuu avatar Mar 27 '24 10:03 machinelearningzuu

fetch the latest changes. already fixed

ARajgor avatar Apr 03 '24 19:04 ARajgor