SuperAGI icon indicating copy to clipboard operation
SuperAGI copied to clipboard

Agents stuck thinking

Open GideonLangenhoven opened this issue 2 years ago • 19 comments

agents dont move passed the thinking phase even after 3 hours of deploy

GideonLangenhoven avatar Jun 07 '23 10:06 GideonLangenhoven

Same issue here 2

stevejford avatar Jun 07 '23 11:06 stevejford

Same, all I get is "Thinking" with either GPT-4 and 3.5.

SpeedoPasanen avatar Jun 07 '23 11:06 SpeedoPasanen

This is a common issue we're facing. We're releasing a patch for this along with the v0.0.4 release scheduled for today.

neelayan7 avatar Jun 07 '23 11:06 neelayan7

This is a common issue we're facing. We're releasing a patch for this along with the v0.0.4 release scheduled for today.

I looked at the logs and says something about some error next.js. Not sure if its related

stevejford avatar Jun 07 '23 11:06 stevejford

This is a common issue we're facing. We're releasing a patch for this along with the v0.0.4 release scheduled for today.

I looked at the logs and says something about some error next.js. Not sure if its related

Can you share the logs?

neelayan7 avatar Jun 07 '23 11:06 neelayan7

Also seeing this issue, excited for the patch!

alvinycheung avatar Jun 07 '23 18:06 alvinycheung

Any details about the patch? I have v0.0.4 installed, but I am now at third hour of thinking phase. How should these situations be handled? In the GUI I only see the pause button.

superagi-super__redis-1 | 1:M 08 Jun 2023 07:17:54.018 * 1 changes in 3600 seconds. Saving... superagi-super__redis-1 | 1:M 08 Jun 2023 07:17:54.019 * Background saving started by pid 21 superagi-super__redis-1 | 21:C 08 Jun 2023 07:17:54.035 * DB saved on disk superagi-super__redis-1 | 21:C 08 Jun 2023 07:17:54.035 * superagi-super__redis-1 | 1:M 08 Jun 2023 07:17:54.018 * 1 changes in 3600 seconds. Saving... superagi-super__redis-1 | 1:M 08 Jun 2023 07:17:54.019 * Background saving started by pid 21 superagi-super__redis-1 | 21:C 08 Jun 2023 07:17:54.035 * DB saved on disk superagi-super__redis-1 | 21:C 08 Jun 2023 07:17:54.035 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB superagi-super__redis-1 | 1:M 08 Jun 2023 07:17:54.119 * Background saving terminated with success superagi-super__redis-1 | 1:M 08 Jun 2023 07:17:54.119 * Background saving terminated with success

manzonif avatar Jun 08 '23 08:06 manzonif

I had a problem with it being stuck thinking and noticed an error.

error_code=invalid_api_key error_message= error_param=None error_type=invalid_request_error message='OpenAI API error received' stream_error=False

There was another issue that pointed me here

superagi\llms\openai.py

I found line 33 commented out

# openai.api_key = get_config("OPENAI_API_KEY")

I uncommented it and tried running it again.

Seems to work.

I have no idea what I'm doing and this might be a bad idea, but it worked.

trapperl avatar Jun 10 '23 04:06 trapperl

I also got the same encountered the same issue be un-commenting the line in the openai.py file didn't work. However, What worked for me though is when utilizing the payment on Openai. I guess you have to start paying.....

VanceTechwell avatar Jun 11 '23 07:06 VanceTechwell

@trapperl Hey in the current version we added an option to add key from frontend did you try that?

luciferlinx101 avatar Jun 11 '23 18:06 luciferlinx101

@GideonLangenhoven are you still facing the same issue with the newer version releases?

neelayan7 avatar Jun 27 '23 11:06 neelayan7

Facing this with the latest release as well. Just cloned the repo.

iAbhinav avatar Jun 28 '23 11:06 iAbhinav

Can you share some detailed logs from docker?

neelayan7 avatar Jun 28 '23 12:06 neelayan7

I'm also experiencing the same issue mentioned by @iAbhinav above. Here's the current logs from my terminal, not sure if that helps you out @neelayan7

superagi-proxy-1 | 172.18.0.1 - - [28/Jun/2023:13:52:23 +0000] "GET /api/agentexecutionfeeds/get/execution/1 HTTP/1.1" 200 4874 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" superagi-backend-1 | INFO: 172.18.0.7:49550 - "GET /agentexecutionfeeds/get/execution/1 HTTP/1.0" 200 OK

No errors that I can see, but also seems that I'm stuck on "thinking..."

kierglover avatar Jun 28 '23 13:06 kierglover

I have tried multiple times today, out of 20+ runs only one got completed.

Others run for sometime but then get stuck on thinking.

iAbhinav avatar Jun 28 '23 15:06 iAbhinav

@iAbhinav can you please share the agent goals and description along with Model you're trying with, so that we can replicate this issue at our end and provide a solution?

neelayan7 avatar Jun 28 '23 20:06 neelayan7

@kierglover can you check if there are any error messages in the log?

neelayan7 avatar Jun 28 '23 20:06 neelayan7

Also, please check if you're OpenAI API keys are setup properly. That can be one of the reasons. Also, if you're using GPT-4 model, kindly check if you have GPT-4 access.

neelayan7 avatar Jun 28 '23 20:06 neelayan7

Hi @neelayan7 thanks for the reply, indeed it seemed to be regarding trying to use GPT-4. When I switched to GPT3.5 it worked well.

kierglover avatar Jun 29 '23 00:06 kierglover

Awesome. Closing this issue as this is solved. Please reopen if you face any issue related to this.

neelayan7 avatar Jul 04 '23 10:07 neelayan7

Hello. I have installed superAGI to 2 different computers and theya re stuck at thinking. I have a paid membership to chatGPT. I double checked my openAI API key and it is correct. When I check the usage on openAI API it shows 0 so the agent is not calling the API. Is there a way to debug the code with visual studio code to see where it is getting stuck? Thanks.

gemoo23 avatar Jul 06 '23 10:07 gemoo23

Can you check the logs in VS code? You'll see error if there's an OpenAI error.

neelayan7 avatar Jul 06 '23 11:07 neelayan7

I had to create a paid account for openAI besides the chatGPT subscription. Created a new API key and now it works. Thanks.

gemoo23 avatar Jul 06 '23 11:07 gemoo23

Oh awesome!

neelayan7 avatar Jul 06 '23 11:07 neelayan7

Hey everyone! I'm pretty new at this. I installed everything by following this video: https://youtu.be/bCgFgUSCEII?si=okjjlvkWB_DzToIY I then got the thinking error where it couldn't find the tool. After googling a bunch I realized it was my openai API key and that I needed to enter billing info. I did that and then it started to work and completed some of the goals, but now it is stuck on 'thinking' again for the last 30 minutes. Any other ideas on how to troubleshoot this? I don't have much technical or CS knowledge (I have a marketing background), so any input would be appreciated. Thanks!

nickgrantmedia avatar Sep 08 '23 06:09 nickgrantmedia