IntelligenzaArtificiale / Free-Auto-GPT

Free Auto GPT with NO paids API is a repository that offers a simple version of Auto GPT, an autonomous AI agent capable of performing tasks independently. Unlike other versions, our implementation does not rely on any paid OpenAI API, making it accessible to anyone.
MIT License
2.47k stars 383 forks source link

KeyError: 'message' #4

Closed ChristianErdtmann closed 1 year ago

ChristianErdtmann commented 1 year ago

Hey man thank you verry much for doing this project. I did everything to set it up and installed requirements, but if i try to do teh same like you on in the sample video, i get the following error:

KeyError: 'message' Traceback: File "C:\Users\Christian\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.dict) File "C:\Users\Christian\Desktop\Free-AUTOGPT-with-NO-API\Camel.py", line 112, in specified_task_msg = task_specify_agent.step(task_specifier_msg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Christian\Desktop\Free-AUTOGPT-with-NO-API\Camel.py", line 65, in step output_message = self.model(str(input_message.content)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Christian\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 246, in call return self.generate([prompt], stop=stop).generations[0][0].text ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Christian\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 140, in generate raise e File "C:\Users\Christian\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 137, in generate output = self._generate(prompts, stop=stop) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Christian\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 324, in _generate text = self._call(prompt, stop=stop) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Christian\Desktop\Free-AUTOGPT-with-NO-API\writesonicAPI.py", line 23, in _call response = writesonic.Completion.create(api_key= self.token.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Christian\Desktop\Free-AUTOGPT-with-NO-API\writesonic__init__.py", line 147, in create 'text' : response['message'],

IntelligenzaArtificiale commented 1 year ago

writesonic is down retry now

ChristianErdtmann commented 1 year ago

its still the same error